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

📄 articlesds.cs

📁 数字图书馆网站
💻 CS
📖 第 1 页 / 共 4 页
字号:
            
            public CategoryRow NewCategoryRow() {
                return ((CategoryRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new CategoryRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(CategoryRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.CategoryRowChanged != null)) {
                    this.CategoryRowChanged(this, new CategoryRowChangeEvent(((CategoryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.CategoryRowChanging != null)) {
                    this.CategoryRowChanging(this, new CategoryRowChangeEvent(((CategoryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.CategoryRowDeleted != null)) {
                    this.CategoryRowDeleted(this, new CategoryRowChangeEvent(((CategoryRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.CategoryRowDeleting != null)) {
                    this.CategoryRowDeleting(this, new CategoryRowChangeEvent(((CategoryRow)(e.Row)), e.Action));
                }
            }
            
            public void RemoveCategoryRow(CategoryRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class CategoryRow : DataRow {
            
            private CategoryDataTable tableCategory;
            
            internal CategoryRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tableCategory = ((CategoryDataTable)(this.Table));
            }
            
            public string Category {
                get {
                    return ((string)(this[this.tableCategory.CategoryColumn]));
                }
                set {
                    this[this.tableCategory.CategoryColumn] = value;
                }
            }
            
            public int CategoryID {
                get {
                    return ((int)(this[this.tableCategory.CategoryIDColumn]));
                }
                set {
                    this[this.tableCategory.CategoryIDColumn] = value;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class CategoryRowChangeEvent : EventArgs {
            
            private CategoryRow eventRow;
            
            private DataRowAction eventAction;
            
            public CategoryRowChangeEvent(CategoryRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public CategoryRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class PayableArticlesDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnArticleID;
            
            private DataColumn columnPrice;
            
            internal PayableArticlesDataTable() : 
                    base("PayableArticles") {
                this.InitClass();
            }
            
            internal PayableArticlesDataTable(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 ArticleIDColumn {
                get {
                    return this.columnArticleID;
                }
            }
            
            internal DataColumn PriceColumn {
                get {
                    return this.columnPrice;
                }
            }
            
            public PayableArticlesRow this[int index] {
                get {
                    return ((PayableArticlesRow)(this.Rows[index]));
                }
            }
            
            public event PayableArticlesRowChangeEventHandler PayableArticlesRowChanged;
            
            public event PayableArticlesRowChangeEventHandler PayableArticlesRowChanging;
            
            public event PayableArticlesRowChangeEventHandler PayableArticlesRowDeleted;
            
            public event PayableArticlesRowChangeEventHandler PayableArticlesRowDeleting;
            
            public void AddPayableArticlesRow(PayableArticlesRow row) {
                this.Rows.Add(row);
            }
            
            public PayableArticlesRow AddPayableArticlesRow(int ArticleID, System.Decimal Price) {
                PayableArticlesRow rowPayableArticlesRow = ((PayableArticlesRow)(this.NewRow()));
                rowPayableArticlesRow.ItemArray = new object[] {
                        ArticleID,
                        Price};
                this.Rows.Add(rowPayableArticlesRow);
                return rowPayableArticlesRow;
            }
            
            public System.Collections.IEnumerator GetEnumerator() {
                return this.Rows.GetEnumerator();
            }
            
            public override DataTable Clone() {
                PayableArticlesDataTable cln = ((PayableArticlesDataTable)(base.Clone()));
                cln.InitVars();
                return cln;
            }
            
            protected override DataTable CreateInstance() {
                return new PayableArticlesDataTable();
            }
            
            internal void InitVars() {
                this.columnArticleID = this.Columns["ArticleID"];
                this.columnPrice = this.Columns["Price"];
            }
            
            private void InitClass() {
                this.columnArticleID = new DataColumn("ArticleID", typeof(int), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnArticleID);
                this.columnPrice = new DataColumn("Price", typeof(System.Decimal), null, System.Data.MappingType.Element);
                this.Columns.Add(this.columnPrice);
                this.columnArticleID.AllowDBNull = false;
                this.columnPrice.AllowDBNull = false;
            }
            
            public PayableArticlesRow NewPayableArticlesRow() {
                return ((PayableArticlesRow)(this.NewRow()));
            }
            
            protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
                return new PayableArticlesRow(builder);
            }
            
            protected override System.Type GetRowType() {
                return typeof(PayableArticlesRow);
            }
            
            protected override void OnRowChanged(DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.PayableArticlesRowChanged != null)) {
                    this.PayableArticlesRowChanged(this, new PayableArticlesRowChangeEvent(((PayableArticlesRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowChanging(DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.PayableArticlesRowChanging != null)) {
                    this.PayableArticlesRowChanging(this, new PayableArticlesRowChangeEvent(((PayableArticlesRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleted(DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.PayableArticlesRowDeleted != null)) {
                    this.PayableArticlesRowDeleted(this, new PayableArticlesRowChangeEvent(((PayableArticlesRow)(e.Row)), e.Action));
                }
            }
            
            protected override void OnRowDeleting(DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.PayableArticlesRowDeleting != null)) {
                    this.PayableArticlesRowDeleting(this, new PayableArticlesRowChangeEvent(((PayableArticlesRow)(e.Row)), e.Action));
                }
            }
            
            public void RemovePayableArticlesRow(PayableArticlesRow row) {
                this.Rows.Remove(row);
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class PayableArticlesRow : DataRow {
            
            private PayableArticlesDataTable tablePayableArticles;
            
            internal PayableArticlesRow(DataRowBuilder rb) : 
                    base(rb) {
                this.tablePayableArticles = ((PayableArticlesDataTable)(this.Table));
            }
            
            public int ArticleID {
                get {
                    return ((int)(this[this.tablePayableArticles.ArticleIDColumn]));
                }
                set {
                    this[this.tablePayableArticles.ArticleIDColumn] = value;
                }
            }
            
            public System.Decimal Price {
                get {
                    return ((System.Decimal)(this[this.tablePayableArticles.PriceColumn]));
                }
                set {
                    this[this.tablePayableArticles.PriceColumn] = value;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class PayableArticlesRowChangeEvent : EventArgs {
            
            private PayableArticlesRow eventRow;
            
            private DataRowAction eventAction;
            
            public PayableArticlesRowChangeEvent(PayableArticlesRow row, DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            public PayableArticlesRow Row {
                get {
                    return this.eventRow;
                }
            }
            
            public DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThrough()]
        public class ArticlesDataTable : DataTable, System.Collections.IEnumerable {
            
            private DataColumn columnArticleID;
            
            private DataColumn columnCategory;
            
            private DataColumn columnFileName;
            
            private DataColumn columnRating;
            
            private DataColumn columnStatus;
            
            private DataColumn columnPostedBy;
            
            private DataColumn columnAbstract;
            
            private DataColumn columnComments;
            
            internal ArticlesDataTable() : 
                    base("Articles") {
                this.InitClass();
            }
            
            internal ArticlesDataTable(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 ArticleIDColumn {
                get {
                    return this.columnArticleID;
                }
            }
            
            internal DataColumn CategoryColumn {
                get {
                    return this.columnCategory;
                }

⌨️ 快捷键说明

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