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

📄 dataset1.cs

📁 atm取款机,源代码
💻 CS
📖 第 1 页 / 共 2 页
字号:
            
            public event 用户表RowChangeEventHandler 用户表RowChanging;
            
            public event 用户表RowChangeEventHandler 用户表RowDeleted;
            
            public event 用户表RowChangeEventHandler 用户表RowDeleting;
            
            public void Add用户表Row(用户表Row row) {
                this.Rows.Add(row);
            }
            
            public 用户表Row Add用户表Row(string 用户帐号, string 密码, string 金额) {
                用户表Row row用户表Row = ((用户表Row)(this.NewRow()));
                row用户表Row.ItemArray = new object[] {
                        用户帐号,
                        密码,
                        金额};
                this.Rows.Add(row用户表Row);
                return row用户表Row;
            }
            
            public 用户表Row FindBy用户帐号(string 用户帐号) {
                return ((用户表Row)(this.Rows.Find(new object[] {
                            用户帐号})));
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                用户表DataTable cln = ((用户表DataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new 用户表DataTable();
            }
            
            internal void InitVars() {
                this.column用户帐号 = this.Columns["用户帐号"];
                this.column密码 = this.Columns["密码"];
                this.column金额 = this.Columns["金额"];
            }
            
            private void InitClass() {
                this.column用户帐号 = new DataColumn("用户帐号", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column用户帐号);
                this.column密码 = new DataColumn("密码", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column密码);
                this.column金额 = new DataColumn("金额", typeof(string), null, System.Data.MappingType.Element);
                this.Columns.Add(this.column金额);
                this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
                                this.column用户帐号}, true));
                this.column用户帐号.AllowDBNull = false;
                this.column用户帐号.Unique = true;
            }
            
            public 用户表Row New用户表Row() {
                return ((用户表Row)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new 用户表Row(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(用户表Row);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.用户表RowChanged != null)) {
                    this.用户表RowChanged(this, new 用户表RowChangeEvent(((用户表Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.用户表RowChanging != null)) {
                    this.用户表RowChanging(this, new 用户表RowChangeEvent(((用户表Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.用户表RowDeleted != null)) {
                    this.用户表RowDeleted(this, new 用户表RowChangeEvent(((用户表Row)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.用户表RowDeleting != null)) {
                    this.用户表RowDeleting(this, new 用户表RowChangeEvent(((用户表Row)(e.Row)), e.Action));
                }
            }
            
            public void Remove用户表Row(用户表Row row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 用户表Row : DataRow {
            
            private 用户表DataTable table用户表;
            
            internal 用户表Row(DataRowBuilder rb) : 
                    base(rb) {
                this.table用户表 = ((用户表DataTable)(this.Table));
            }
            
            public string 用户帐号 {
                get {
                    return ((string)(this[this.table用户表.用户帐号Column]));
                }
                set {
                    this[this.table用户表.用户帐号Column] = value;
                }
            }
            
            public string 密码 {
                get {
                    try {
                        return ((string)(this[this.table用户表.密码Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table用户表.密码Column] = value;
                }
            }
            
            public string 金额 {
                get {
                    try {
                        return ((string)(this[this.table用户表.金额Column]));
                    }
                    catch (InvalidCastException e) {
                        throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
                    }
                }
                set {
                    this[this.table用户表.金额Column] = value;
                }
            }
            
            public bool Is密码Null() {
                return this.IsNull(this.table用户表.密码Column);
            }
            
            public void Set密码Null() {
                this[this.table用户表.密码Column] = System.Convert.DBNull;
            }
            
            public bool Is金额Null() {
                return this.IsNull(this.table用户表.金额Column);
            }
            
            public void Set金额Null() {
                this[this.table用户表.金额Column] = System.Convert.DBNull;
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class 用户表RowChangeEvent : EventArgs {
            
            private 用户表Row eventRow;
            
            private DataRowAction eventAction;
            
            public 用户表RowChangeEvent(用户表Row row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public 用户表Row Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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