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

📄 stuaddedinfo.designer.cs

📁 C#2.0宝典源码,C#经典书籍,很多例子
💻 CS
📖 第 1 页 / 共 5 页
字号:
                    this.tablechangeTypes.InitVars();
                }
            }
            this.tablepunishmentTypes = ((punishmentTypesDataTable)(base.Tables["punishmentTypes"]));
            if ((initTable == true)) {
                if ((this.tablepunishmentTypes != null)) {
                    this.tablepunishmentTypes.InitVars();
                }
            }
            this.relationpunishmentTypespunishments = this.Relations["punishmentTypespunishments"];
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private void InitClass() {
            this.DataSetName = "StuAddedInfo";
            this.Prefix = "";
            this.Namespace = "http://tempuri.org/StuAddedInfo.xsd";
            this.EnforceConstraints = true;
            this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            this.tableawards = new awardsDataTable();
            base.Tables.Add(this.tableawards);
            this.tablechanges = new changesDataTable();
            base.Tables.Add(this.tablechanges);
            this.tablepunishments = new punishmentsDataTable();
            base.Tables.Add(this.tablepunishments);
            this.tablechangeTypes = new changeTypesDataTable();
            base.Tables.Add(this.tablechangeTypes);
            this.tablepunishmentTypes = new punishmentTypesDataTable();
            base.Tables.Add(this.tablepunishmentTypes);
            System.Data.ForeignKeyConstraint fkc;
            fkc = new System.Data.ForeignKeyConstraint("changeTypeschanges", new System.Data.DataColumn[] {
                        this.tablechangeTypes.changeType_IDColumn}, new System.Data.DataColumn[] {
                        this.tablechanges.change_changeTypeColumn});
            this.tablechanges.Constraints.Add(fkc);
            fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
            fkc.DeleteRule = System.Data.Rule.Cascade;
            fkc.UpdateRule = System.Data.Rule.Cascade;
            fkc = new System.Data.ForeignKeyConstraint("punishmentTypespunishments", new System.Data.DataColumn[] {
                        this.tablepunishmentTypes.punishmentType_IDColumn}, new System.Data.DataColumn[] {
                        this.tablepunishments.punishment_typeIDColumn});
            this.tablepunishments.Constraints.Add(fkc);
            fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None;
            fkc.DeleteRule = System.Data.Rule.Cascade;
            fkc.UpdateRule = System.Data.Rule.Cascade;
            this.relationpunishmentTypespunishments = new System.Data.DataRelation("punishmentTypespunishments", new System.Data.DataColumn[] {
                        this.tablepunishmentTypes.punishmentType_IDColumn}, new System.Data.DataColumn[] {
                        this.tablepunishments.punishment_typeIDColumn}, false);
            this.Relations.Add(this.relationpunishmentTypespunishments);
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializeawards() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializechanges() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializepunishments() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializechangeTypes() {
            return false;
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        private bool ShouldSerializepunishmentTypes() {
            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) {
            StuAddedInfo ds = new StuAddedInfo();
            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 awardsRowChangeEventHandler(object sender, awardsRowChangeEvent e);
        
        public delegate void changesRowChangeEventHandler(object sender, changesRowChangeEvent e);
        
        public delegate void punishmentsRowChangeEventHandler(object sender, punishmentsRowChangeEvent e);
        
        public delegate void changeTypesRowChangeEventHandler(object sender, changeTypesRowChangeEvent e);
        
        public delegate void punishmentTypesRowChangeEventHandler(object sender, punishmentTypesRowChangeEvent e);
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
        [System.Serializable()]
        [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
        public partial class awardsDataTable : System.Data.DataTable, System.Collections.IEnumerable {
            
            private System.Data.DataColumn columnaward_ID;
            
            private System.Data.DataColumn columnaward_studentID;
            
            private System.Data.DataColumn columnaward_content;
            
            private System.Data.DataColumn columnaward_reason;
            
            private System.Data.DataColumn columnaward_date;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public awardsDataTable() {
                this.TableName = "awards";
                this.BeginInit();
                this.InitClass();
                this.EndInit();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal awardsDataTable(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 awardsDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                    base(info, context) {
                this.InitVars();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn award_IDColumn {
                get {
                    return this.columnaward_ID;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn award_studentIDColumn {
                get {
                    return this.columnaward_studentID;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn award_contentColumn {
                get {
                    return this.columnaward_content;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn award_reasonColumn {
                get {
                    return this.columnaward_reason;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataColumn award_dateColumn {
                get {
                    return this.columnaward_date;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public awardsRow this[int index] {
                get {
                    return ((awardsRow)(this.Rows[index]));
                }
            }
            
            public event awardsRowChangeEventHandler awardsRowChanging;
            
            public event awardsRowChangeEventHandler awardsRowChanged;
            
            public event awardsRowChangeEventHandler awardsRowDeleting;
            
            public event awardsRowChangeEventHandler awardsRowDeleted;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void AddawardsRow(awardsRow row) {
                this.Rows.Add(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public awardsRow AddawardsRow(string award_studentID, string award_content, string award_reason, System.DateTime award_date) {
                awardsRow rowawardsRow = ((awardsRow)(this.NewRow()));
                rowawardsRow.ItemArray = new object[] {
                        null,
                        award_studentID,
                        award_content,
                        award_reason,
                        award_date};
                this.Rows.Add(rowawardsRow);
                return rowawardsRow;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public awardsRow FindByaward_ID(int award_ID) {
                return ((awardsRow)(this.Rows.Find(new object[] {
                            award_ID})));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public virtual System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public override System.Data.DataTable Clone() {
                awardsDataTable cln = ((awardsDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataTable CreateInstance() {
                return new awardsDataTable();
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal void InitVars() {
                this.columnaward_ID = base.Columns["award_ID"];
                this.columnaward_studentID = base.Columns["award_studentID"];
                this.columnaward_content = base.Columns["award_content"];
                this.columnaward_reason = base.Columns["award_reason"];
                this.columnaward_date = base.Columns["award_date"];
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            private void InitClass() {
                this.columnaward_ID = new System.Data.DataColumn("award_ID", typeof(int), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnaward_ID);
                this.columnaward_studentID = new System.Data.DataColumn("award_studentID", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnaward_studentID);
                this.columnaward_content = new System.Data.DataColumn("award_content", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.columnaward_content);

⌨️ 快捷键说明

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