⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dataset1.designer.cs

📁 c#图书销售系统,经典例子.适合初学者使用.
💻 CS
📖 第 1 页 / 共 2 页
字号:
                }
            }
            
            public event TABLE1RowChangeEventHandler TABLE1RowChanging;
            
            public event TABLE1RowChangeEventHandler TABLE1RowChanged;
            
            public event TABLE1RowChangeEventHandler TABLE1RowDeleting;
            
            public event TABLE1RowChangeEventHandler TABLE1RowDeleted;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void AddTABLE1Row(TABLE1Row row) {
                this.Rows.Add(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public TABLE1Row AddTABLE1Row(string 书名, string 作者, string 出版社, string 出版日期, string 定价) {
                TABLE1Row rowTABLE1Row = ((TABLE1Row)(this.NewRow()));
                rowTABLE1Row.ItemArray = new object[] {
                        书名,
                        作者,
                        出版社,
                        出版日期,
                        定价};
                this.Rows.Add(rowTABLE1Row);
                return rowTABLE1Row;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public TABLE1Row FindBy书名(string 书名) {
                return ((TABLE1Row)(this.Rows.Find(new object[] {
                            书名})));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public virtual System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public override System.Data.DataTable Clone() {
                TABLE1DataTable cln = ((TABLE1DataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataTable CreateInstance() {
                return new TABLE1DataTable();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal void InitVars() {
                this.column书名 = base.Columns["书名"];
                this.column作者 = base.Columns["作者"];
                this.column出版社 = base.Columns["出版社"];
                this.column出版日期 = base.Columns["出版日期"];
                this.column定价 = base.Columns["定价"];
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitClass() {
                this.column书名 = new System.Data.DataColumn("书名", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column书名);
                this.column作者 = new System.Data.DataColumn("作者", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column作者);
                this.column出版社 = new System.Data.DataColumn("出版社", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column出版社);
                this.column出版日期 = new System.Data.DataColumn("出版日期", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column出版日期);
                this.column定价 = new System.Data.DataColumn("定价", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column定价);
                this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
                                this.column书名}, true));
                this.column书名.AllowDBNull = false;
                this.column书名.Unique = true;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public TABLE1Row NewTABLE1Row() {
                return ((TABLE1Row)(this.NewRow()));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
                return new TABLE1Row(builder);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Type GetRowType() {
                return typeof(TABLE1Row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.TABLE1RowChanged != null)) {
                    this.TABLE1RowChanged(this, new TABLE1RowChangeEvent(((TABLE1Row)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.TABLE1RowChanging != null)) {
                    this.TABLE1RowChanging(this, new TABLE1RowChangeEvent(((TABLE1Row)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.TABLE1RowDeleted != null)) {
                    this.TABLE1RowDeleted(this, new TABLE1RowChangeEvent(((TABLE1Row)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.TABLE1RowDeleting != null)) {
                    this.TABLE1RowDeleting(this, new TABLE1RowChangeEvent(((TABLE1Row)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void RemoveTABLE1Row(TABLE1Row row) {
                this.Rows.Remove(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
                System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
                System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
                DataSet1 ds = new DataSet1();
                xs.Add(ds.GetSchemaSerializable());
                System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
                any1.MinOccurs = new decimal(0);
                any1.MaxOccurs = decimal.MaxValue;
                any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any1);
                System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
                any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
                any2.MinOccurs = new decimal(1);
                any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any2);
                System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name = "tableTypeName";
                attribute2.FixedValue = "TABLE1DataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                return type;
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public partial class TABLE1Row : System.Data.DataRow {
            
            private TABLE1DataTable tableTABLE1;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal TABLE1Row(System.Data.DataRowBuilder rb) : 
                    base(rb) {
                this.tableTABLE1 = ((TABLE1DataTable)(this.Table));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 书名 {
                get {
                    return ((string)(this[this.tableTABLE1.书名Column]));
                }
                set {
                    this[this.tableTABLE1.书名Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 作者 {
                get {
                    try {
                        return ((string)(this[this.tableTABLE1.作者Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“TABLE1”中列“作者”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTABLE1.作者Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 出版社 {
                get {
                    try {
                        return ((string)(this[this.tableTABLE1.出版社Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“TABLE1”中列“出版社”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTABLE1.出版社Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 出版日期 {
                get {
                    try {
                        return ((string)(this[this.tableTABLE1.出版日期Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“TABLE1”中列“出版日期”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTABLE1.出版日期Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 定价 {
                get {
                    try {
                        return ((string)(this[this.tableTABLE1.定价Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“TABLE1”中列“定价”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.tableTABLE1.定价Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is作者Null() {
                return this.IsNull(this.tableTABLE1.作者Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set作者Null() {
                this[this.tableTABLE1.作者Column] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is出版社Null() {
                return this.IsNull(this.tableTABLE1.出版社Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set出版社Null() {
                this[this.tableTABLE1.出版社Column] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is出版日期Null() {
                return this.IsNull(this.tableTABLE1.出版日期Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set出版日期Null() {
                this[this.tableTABLE1.出版日期Column] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is定价Null() {
                return this.IsNull(this.tableTABLE1.定价Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set定价Null() {
                this[this.tableTABLE1.定价Column] = System.Convert.DBNull;
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        public class TABLE1RowChangeEvent : System.EventArgs {
            
            private TABLE1Row eventRow;
            
            private System.Data.DataRowAction eventAction;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public TABLE1RowChangeEvent(TABLE1Row row, System.Data.DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public TABLE1Row Row {
                get {
                    return this.eventRow;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

#pragma warning restore 1591

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -