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

📄 mydata2dataset.designer.cs

📁 图书馆管理系统的一个代码 很好的学习借鉴
💻 CS
📖 第 1 页 / 共 5 页
字号:
            if ((initTable == true)) {
                if ((this.tableBook != null)) {
                    this.tableBook.InitVars();
                }
            }
            this.tableIssueBook = ((IssueBookDataTable)(base.Tables["IssueBook"]));
            if ((initTable == true)) {
                if ((this.tableIssueBook != null)) {
                    this.tableIssueBook.InitVars();
                }
            }
            this.tableReader = ((ReaderDataTable)(base.Tables["Reader"]));
            if ((initTable == true)) {
                if ((this.tableReader != null)) {
                    this.tableReader.InitVars();
                }
            }
            this.tableSmallClassOfBook = ((SmallClassOfBookDataTable)(base.Tables["SmallClassOfBook"]));
            if ((initTable == true)) {
                if ((this.tableSmallClassOfBook != null)) {
                    this.tableSmallClassOfBook.InitVars();
                }
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitClass() {
            this.DataSetName = "Mydata2DataSet";
            this.Prefix = "";
            this.Namespace = "http://tempuri.org/Mydata2DataSet.xsd";
            this.EnforceConstraints = true;
            this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            this.tableadmin = new adminDataTable();
            base.Tables.Add(this.tableadmin);
            this.tableBigClassOfBook = new BigClassOfBookDataTable();
            base.Tables.Add(this.tableBigClassOfBook);
            this.tableBook = new BookDataTable();
            base.Tables.Add(this.tableBook);
            this.tableIssueBook = new IssueBookDataTable();
            base.Tables.Add(this.tableIssueBook);
            this.tableReader = new ReaderDataTable();
            base.Tables.Add(this.tableReader);
            this.tableSmallClassOfBook = new SmallClassOfBookDataTable();
            base.Tables.Add(this.tableSmallClassOfBook);
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializeadmin() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializeBigClassOfBook() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializeBook() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializeIssueBook() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializeReader() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializeSmallClassOfBook() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
            if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
                this.InitVars();
            }
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs) {
            Mydata2DataSet ds = new Mydata2DataSet();
            System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
            System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
            xs.Add(ds.GetSchemaSerializable());
            System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny();
            any.Namespace = ds.Namespace;
            sequence.Items.Add(any);
            type.Particle = sequence;
            return type;
        }
        
        public delegate void adminRowChangeEventHandler(object sender, adminRowChangeEvent e);
        
        public delegate void BigClassOfBookRowChangeEventHandler(object sender, BigClassOfBookRowChangeEvent e);
        
        public delegate void BookRowChangeEventHandler(object sender, BookRowChangeEvent e);
        
        public delegate void IssueBookRowChangeEventHandler(object sender, IssueBookRowChangeEvent e);
        
        public delegate void ReaderRowChangeEventHandler(object sender, ReaderRowChangeEvent e);
        
        public delegate void SmallClassOfBookRowChangeEventHandler(object sender, SmallClassOfBookRowChangeEvent e);
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        [System.Serializable()]
        [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
        public partial class adminDataTable : System.Data.DataTable, System.Collections.IEnumerable {
            
            private System.Data.DataColumn columnaccount;
            
            private System.Data.DataColumn columnname;
            
            private System.Data.DataColumn columnpassword;
            
            private System.Data.DataColumn columnAdminImage;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public adminDataTable() {
                this.TableName = "admin";
                this.BeginInit();
                this.InitClass();
                this.EndInit();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal adminDataTable(System.Data.DataTable table) {
                this.TableName = table.TableName;
                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                    this.CaseSensitive = table.CaseSensitive;
                }
                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                    this.Locale = table.Locale;
                }
                if ((table.Namespace != table.DataSet.Namespace)) {
                    this.Namespace = table.Namespace;
                }
                this.Prefix = table.Prefix;
                this.MinimumCapacity = table.MinimumCapacity;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected adminDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                    base(info, context) {
                this.InitVars();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn accountColumn {
                get {
                    return this.columnaccount;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn nameColumn {
                get {
                    return this.columnname;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn passwordColumn {
                get {
                    return this.columnpassword;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn AdminImageColumn {
                get {
                    return this.columnAdminImage;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public adminRow this[int index] {
                get {
                    return ((adminRow)(this.Rows[index]));
                }
            }
            
            public event adminRowChangeEventHandler adminRowChanging;
            
            public event adminRowChangeEventHandler adminRowChanged;
            
            public event adminRowChangeEventHandler adminRowDeleting;
            
            public event adminRowChangeEventHandler adminRowDeleted;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void AddadminRow(adminRow row) {
                this.Rows.Add(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public adminRow AddadminRow(string account, string name, string password, byte[] AdminImage) {
                adminRow rowadminRow = ((adminRow)(this.NewRow()));
                rowadminRow.ItemArray = new object[] {
                        account,
                        name,
                        password,
                        AdminImage};
                this.Rows.Add(rowadminRow);
                return rowadminRow;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public adminRow FindByaccount(string account) {
                return ((adminRow)(this.Rows.Find(new object[] {
                            account})));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public virtual System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public override System.Data.DataTable Clone() {
                adminDataTable cln = ((adminDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataTable CreateInstance() {
                return new adminDataTable();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal void InitVars() {
                this.columnaccount = base.Columns["account"];
                this.columnname = base.Columns["name"];
                this.columnpassword = base.Columns["password"];
                this.columnAdminImage = base.Columns["AdminImage"];
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitClass() {
                this.columnaccount = new System.Data.DataColumn("account", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnaccount);
                this.columnname = new System.Data.DataColumn("name", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnname);
                this.columnpassword = new System.Data.DataColumn("password", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnpassword);
                this.columnAdminImage = new System.Data.DataColumn("AdminImage", typeof(byte[]), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnAdminImage);
                this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] {
                                this.columnaccount}, true));
                this.columnaccount.AllowDBNull = false;
                this.columnaccount.Unique = true;
                this.columnaccount.MaxLength = 50;
                this.columnname.MaxLength = 50;
                this.columnpassword.MaxLength = 50;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public adminRow NewadminRow() {
                return ((adminRow)(this.NewRow()));
            }

⌨️ 快捷键说明

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