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

📄 showdata.designer.cs

📁 VS2005开发的
💻 CS
📖 第 1 页 / 共 2 页
字号:
                this.column转换前序号 = new System.Data.DataColumn("转换前序号", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column转换前序号);
                this.column转换后序号 = new System.Data.DataColumn("转换后序号", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column转换后序号);
                this.column序号后 = new System.Data.DataColumn("序号后", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column序号后);
                this.column转换前数据 = new System.Data.DataColumn("转换前数据", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column转换前数据);
                this.column转换后数据 = new System.Data.DataColumn("转换后数据", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column转换后数据);
                this.column结果 = new System.Data.DataColumn("结果", typeof(string), null, System.Data.MappingType.Element);
                base.Columns.Add(this.column结果);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public 数据Row New数据Row() {
                return ((数据Row)(this.NewRow()));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
                return new 数据Row(builder);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override System.Type GetRowType() {
                return typeof(数据Row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanged(e);
                if ((this.数据RowChanged != null)) {
                    this.数据RowChanged(this, new 数据RowChangeEvent(((数据Row)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
                base.OnRowChanging(e);
                if ((this.数据RowChanging != null)) {
                    this.数据RowChanging(this, new 数据RowChangeEvent(((数据Row)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleted(e);
                if ((this.数据RowDeleted != null)) {
                    this.数据RowDeleted(this, new 数据RowChangeEvent(((数据Row)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
                base.OnRowDeleting(e);
                if ((this.数据RowDeleting != null)) {
                    this.数据RowDeleting(this, new 数据RowChangeEvent(((数据Row)(e.Row)), e.Action));
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Remove数据Row(数据Row row) {
                this.Rows.Remove(row);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
                System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
                System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
                ShowData ds = new ShowData();
                xs.Add(ds.GetSchemaSerializable());
                System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
                any1.MinOccurs = new decimal(0);
                any1.MaxOccurs = decimal.MaxValue;
                any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any1);
                System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
                any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
                any2.MinOccurs = new decimal(1);
                any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
                sequence.Items.Add(any2);
                System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute1.Name = "namespace";
                attribute1.FixedValue = ds.Namespace;
                type.Attributes.Add(attribute1);
                System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
                attribute2.Name = "tableTypeName";
                attribute2.FixedValue = "数据DataTable";
                type.Attributes.Add(attribute2);
                type.Particle = sequence;
                return type;
            }
        }
        
        public partial class 数据Row : System.Data.DataRow {
            
            private 数据DataTable table数据;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            internal 数据Row(System.Data.DataRowBuilder rb) : 
                    base(rb) {
                this.table数据 = ((数据DataTable)(this.Table));
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 序号前 {
                get {
                    try {
                        return ((string)(this[this.table数据.序号前Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“数据”中列“序号前”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.table数据.序号前Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 转换前序号 {
                get {
                    try {
                        return ((string)(this[this.table数据.转换前序号Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“数据”中列“转换前序号”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.table数据.转换前序号Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 转换后序号 {
                get {
                    try {
                        return ((string)(this[this.table数据.转换后序号Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“数据”中列“转换后序号”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.table数据.转换后序号Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 序号后 {
                get {
                    try {
                        return ((string)(this[this.table数据.序号后Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“数据”中列“序号后”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.table数据.序号后Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 转换前数据 {
                get {
                    try {
                        return ((string)(this[this.table数据.转换前数据Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“数据”中列“转换前数据”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.table数据.转换前数据Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 转换后数据 {
                get {
                    try {
                        return ((string)(this[this.table数据.转换后数据Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“数据”中列“转换后数据”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.table数据.转换后数据Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public string 结果 {
                get {
                    try {
                        return ((string)(this[this.table数据.结果Column]));
                    }
                    catch (System.InvalidCastException e) {
                        throw new System.Data.StrongTypingException("表“数据”中列“结果”的值为 DBNull。", e);
                    }
                }
                set {
                    this[this.table数据.结果Column] = value;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is序号前Null() {
                return this.IsNull(this.table数据.序号前Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set序号前Null() {
                this[this.table数据.序号前Column] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is转换前序号Null() {
                return this.IsNull(this.table数据.转换前序号Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set转换前序号Null() {
                this[this.table数据.转换前序号Column] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is转换后序号Null() {
                return this.IsNull(this.table数据.转换后序号Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set转换后序号Null() {
                this[this.table数据.转换后序号Column] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is序号后Null() {
                return this.IsNull(this.table数据.序号后Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set序号后Null() {
                this[this.table数据.序号后Column] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is转换前数据Null() {
                return this.IsNull(this.table数据.转换前数据Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set转换前数据Null() {
                this[this.table数据.转换前数据Column] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is转换后数据Null() {
                return this.IsNull(this.table数据.转换后数据Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set转换后数据Null() {
                this[this.table数据.转换后数据Column] = System.Convert.DBNull;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public bool Is结果Null() {
                return this.IsNull(this.table数据.结果Column);
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public void Set结果Null() {
                this[this.table数据.结果Column] = System.Convert.DBNull;
            }
        }
        
        public class 数据RowChangeEvent : System.EventArgs {
            
            private 数据Row eventRow;
            
            private System.Data.DataRowAction eventAction;
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public 数据RowChangeEvent(数据Row row, System.Data.DataRowAction action) {
                this.eventRow = row;
                this.eventAction = action;
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public 数据Row Row {
                get {
                    return this.eventRow;
                }
            }
            
            [System.Diagnostics.DebuggerNonUserCodeAttribute()]
            public System.Data.DataRowAction Action {
                get {
                    return this.eventAction;
                }
            }
        }
    }
}
namespace ShowDataUtil {
    using System;
    using System.Data;
    
    
    public partial class DesignerUtil {
        
        public static bool IsDesignTime() {
            // Determine if this instance is running against .NET Framework by using the MSCoreLib PublicKeyToken
            System.Reflection.Assembly mscorlibAssembly = typeof(int).Assembly;
            if ((mscorlibAssembly != null)) {
                if (mscorlibAssembly.FullName.ToUpper().EndsWith("B77A5C561934E089")) {
                    return true;
                }
            }
            return false;
        }
        
        public static bool IsRunTime() {
            // Determine if this instance is running against .NET Compact Framework by using the MSCoreLib PublicKeyToken
            System.Reflection.Assembly mscorlibAssembly = typeof(int).Assembly;
            if ((mscorlibAssembly != null)) {
                if (mscorlibAssembly.FullName.ToUpper().EndsWith("969DB8053D3322AC")) {
                    return true;
                }
            }
            return false;
        }
    }
}

⌨️ 快捷键说明

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