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

📄 outbox.cs

📁 手机串口编程 手机串口编程 手机串口编程
💻 CS
📖 第 1 页 / 共 2 页
字号:
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.OutBoxRowChanging != null)) {
                    this.OutBoxRowChanging(this, new OutBoxRowChangeEvent(((OutBoxRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.OutBoxRowDeleted != null)) {
                    this.OutBoxRowDeleted(this, new OutBoxRowChangeEvent(((OutBoxRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.OutBoxRowDeleting != null)) {
                    this.OutBoxRowDeleting(this, new OutBoxRowChangeEvent(((OutBoxRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveOutBoxRow(OutBoxRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class OutBoxRow : DataRow {
            
            private OutBoxDataTable tableOutBox;
            
            internal OutBoxRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableOutBox = ((OutBoxDataTable)(this.Table));
            }
            
            public int OutBoxId {
                get {
                    return ((int)(this[this.tableOutBox.OutBoxIdColumn]));
                }
                set {
                    this[this.tableOutBox.OutBoxIdColumn] = value;
                }
            }
            
            public int SendUserId {
                get {
                    return ((int)(this[this.tableOutBox.SendUserIdColumn]));
                }
                set {
                    this[this.tableOutBox.SendUserIdColumn] = value;
                }
            }
            
            public System.DateTime SendTime {
                get {
                    return ((System.DateTime)(this[this.tableOutBox.SendTimeColumn]));
                }
                set {
                    this[this.tableOutBox.SendTimeColumn] = value;
                }
            }
            
            public string Message {
                get {
                    return ((string)(this[this.tableOutBox.MessageColumn]));
                }
                set {
                    this[this.tableOutBox.MessageColumn] = value;
                }
            }
            
            public int Status {
                get {
                    return ((int)(this[this.tableOutBox.StatusColumn]));
                }
                set {
                    this[this.tableOutBox.StatusColumn] = value;
                }
            }
            
            public int Type {
                get {
                    return ((int)(this[this.tableOutBox.TypeColumn]));
                }
                set {
                    this[this.tableOutBox.TypeColumn] = value;
                }
            }
            
            public OutBoxDetailRow[] GetOutBoxDetailRows() {
                return ((OutBoxDetailRow[])(this.GetChildRows(this.Table.ChildRelations["OutBox_OutBoxDetail"])));
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class OutBoxRowChangeEvent : EventArgs {
            
            private OutBoxRow eventRow;
            
            private DataRowAction eventAction;
            
            public OutBoxRowChangeEvent(OutBoxRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public OutBoxRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class OutBoxDetailDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnOutBoxDetailId;
            
            private DataColumn columnOutBoxId;
            
            private DataColumn columnReceiverId;
            
            private DataColumn columnOutBox_Id;
            
            internal OutBoxDetailDataTable() : 
                    base("OutBoxDetail") {
                this.InitClass();
            }
            
            internal OutBoxDetailDataTable(DataTable table) : 
                    base(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;
                this.DisplayExpression = table.DisplayExpression;
            }
            
            [System.ComponentModel.Browsable(false)]
            public int Count {
                get {
                    return this.Rows.Count;
                }
            }
            
            internal DataColumn OutBoxDetailIdColumn {
                get {
                    return this.columnOutBoxDetailId;
                }
            }
            
            internal DataColumn OutBoxIdColumn {
                get {
                    return this.columnOutBoxId;
                }
            }
            
            internal DataColumn ReceiverIdColumn {
                get {
                    return this.columnReceiverId;
                }
            }
            
            internal DataColumn OutBox_IdColumn {
                get {
                    return this.columnOutBox_Id;
                }
            }
            
            public OutBoxDetailRow this[int index] {
                get {
                    return ((OutBoxDetailRow)(this.Rows[index]));
                }
            }
            
            public event OutBoxDetailRowChangeEventHandler OutBoxDetailRowChanged;
            
            public event OutBoxDetailRowChangeEventHandler OutBoxDetailRowChanging;
            
            public event OutBoxDetailRowChangeEventHandler OutBoxDetailRowDeleted;
            
            public event OutBoxDetailRowChangeEventHandler OutBoxDetailRowDeleting;
            
            public void AddOutBoxDetailRow(OutBoxDetailRow row) {
                this.Rows.Add(row);
            }
            
            public OutBoxDetailRow AddOutBoxDetailRow(int OutBoxId, int ReceiverId, OutBoxRow parentOutBoxRowByOutBox_OutBoxDetail) {
                OutBoxDetailRow rowOutBoxDetailRow = ((OutBoxDetailRow)(this.NewRow()));
                rowOutBoxDetailRow.ItemArray = new object[] {
                        null,
                        OutBoxId,
                        ReceiverId,
                        parentOutBoxRowByOutBox_OutBoxDetail[6]};
                this.Rows.Add(rowOutBoxDetailRow);
                return rowOutBoxDetailRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                OutBoxDetailDataTable cln = ((OutBoxDetailDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new OutBoxDetailDataTable();
            }
            
            internal void InitVars() {
                this.columnOutBoxDetailId = this.Columns["OutBoxDetailId"];
                this.columnOutBoxId = this.Columns["OutBoxId"];
                this.columnReceiverId = this.Columns["ReceiverId"];
                this.columnOutBox_Id = this.Columns["OutBox_Id"];
            }
            
            private void InitClass() {
                this.columnOutBoxDetailId = new DataColumn("OutBoxDetailId", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnOutBoxDetailId);
                this.columnOutBoxId = new DataColumn("OutBoxId", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnOutBoxId);
                this.columnReceiverId = new DataColumn("ReceiverId", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnReceiverId);
                this.columnOutBox_Id = new DataColumn("OutBox_Id", typeof(int), null, System.Data.MappingType.Hidden);
                this.Columns.Add(this.columnOutBox_Id);
                this.columnOutBoxDetailId.AutoIncrement = true;
                this.columnOutBoxDetailId.AllowDBNull = false;
                this.columnOutBoxDetailId.ReadOnly = true;
                this.columnOutBoxId.AllowDBNull = false;
                this.columnReceiverId.AllowDBNull = false;
            }
            
            public OutBoxDetailRow NewOutBoxDetailRow() {
                return ((OutBoxDetailRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new OutBoxDetailRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(OutBoxDetailRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.OutBoxDetailRowChanged != null)) {
                    this.OutBoxDetailRowChanged(this, new OutBoxDetailRowChangeEvent(((OutBoxDetailRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.OutBoxDetailRowChanging != null)) {
                    this.OutBoxDetailRowChanging(this, new OutBoxDetailRowChangeEvent(((OutBoxDetailRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.OutBoxDetailRowDeleted != null)) {
                    this.OutBoxDetailRowDeleted(this, new OutBoxDetailRowChangeEvent(((OutBoxDetailRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.OutBoxDetailRowDeleting != null)) {
                    this.OutBoxDetailRowDeleting(this, new OutBoxDetailRowChangeEvent(((OutBoxDetailRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveOutBoxDetailRow(OutBoxDetailRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class OutBoxDetailRow : DataRow {
            
            private OutBoxDetailDataTable tableOutBoxDetail;
            
            internal OutBoxDetailRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableOutBoxDetail = ((OutBoxDetailDataTable)(this.Table));
            }
            
            public int OutBoxDetailId {
                get {
                    return ((int)(this[this.tableOutBoxDetail.OutBoxDetailIdColumn]));
                }
                set {
                    this[this.tableOutBoxDetail.OutBoxDetailIdColumn] = value;
                }
            }
            
            public int OutBoxId {
                get {
                    return ((int)(this[this.tableOutBoxDetail.OutBoxIdColumn]));
                }
                set {
                    this[this.tableOutBoxDetail.OutBoxIdColumn] = value;
                }
            }
            
            public int ReceiverId {
                get {
                    return ((int)(this[this.tableOutBoxDetail.ReceiverIdColumn]));
                }
                set {
                    this[this.tableOutBoxDetail.ReceiverIdColumn] = value;
                }
            }
            
            public OutBoxRow OutBoxRow {
                get {
                    return ((OutBoxRow)(this.GetParentRow(this.Table.ParentRelations["OutBox_OutBoxDetail"])));
                }
                set {
                    this.SetParentRow(value, this.Table.ParentRelations["OutBox_OutBoxDetail"]);
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class OutBoxDetailRowChangeEvent : EventArgs {
            
            private OutBoxDetailRow eventRow;
            
            private DataRowAction eventAction;
            
            public OutBoxDetailRowChangeEvent(OutBoxDetailRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public OutBoxDetailRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}

⌨️ 快捷键说明

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