public override global::System.Data.DataSet Clone() { DsCustomers cln = ((DsCustomers)(base.Clone())); cln.InitVars(); cln.SchemaSerializationMode = this.SchemaSerializationMode; return(cln); }
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { DsCustomers ds = new DsCustomers(); global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); any.Namespace = ds.Namespace; sequence.Items.Add(any); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext();) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte()));) { ; } if ((s1.Position == s1.Length)) { return(type); } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return(type); }
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); DsCustomers ds = new DsCustomers(); global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "CustomerDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext();) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte()));) { ; } if ((s1.Position == s1.Length)) { return(type); } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return(type); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { C1.Win.C1List.Style style1 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style2 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style3 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style4 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style5 = new C1.Win.C1List.Style(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); C1.Win.C1List.Style style6 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style7 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style8 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style9 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style10 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style11 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style12 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style13 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style14 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style15 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style16 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style17 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style18 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style19 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style20 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style21 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style22 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style23 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style24 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style25 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style26 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style27 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style28 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style29 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style30 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style31 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style32 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style33 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style34 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style35 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style36 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style37 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style38 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style39 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style40 = new C1.Win.C1List.Style(); this.C1List1 = new C1.Win.C1List.C1List(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.c1Combo4 = new C1.Win.C1List.C1Combo(); this.c1Combo3 = new C1.Win.C1List.C1Combo(); this.c1Combo2 = new C1.Win.C1List.C1Combo(); this.c1Combo1 = new C1.Win.C1List.C1Combo(); this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand(); this.oleDbDataAdapter1 = new System.Data.OleDb.OleDbDataAdapter(); this.oleDbConnection1 = new System.Data.OleDb.OleDbConnection(); this.dsCustomers1 = new Tutorial18.DsCustomers(); ((System.ComponentModel.ISupportInitialize)(this.C1List1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Combo4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Combo3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Combo2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Combo1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsCustomers1)).BeginInit(); this.SuspendLayout(); // // C1List1 // this.C1List1.AddItemSeparator = ';'; this.C1List1.CaptionHeight = 17; this.C1List1.CaptionStyle = style1; this.C1List1.ColumnCaptionHeight = 17; this.C1List1.ColumnFooterHeight = 17; this.C1List1.ColumnWidth = 100; this.C1List1.DataMember = "Customer"; this.C1List1.DataSource = this.dsCustomers1; this.C1List1.DeadAreaBackColor = System.Drawing.SystemColors.ControlDark; this.C1List1.DisplayMember = "Company"; this.C1List1.EvenRowStyle = style2; this.C1List1.FooterStyle = style3; this.C1List1.HeadingStyle = style4; this.C1List1.HighLightRowStyle = style5; this.C1List1.Images.Add(((System.Drawing.Image)(resources.GetObject("C1List1.Images")))); this.C1List1.ItemHeight = 15; this.C1List1.Location = new System.Drawing.Point(32, 24); this.C1List1.MatchEntryTimeout = ((long)(2000)); this.C1List1.Name = "C1List1"; this.C1List1.OddRowStyle = style6; this.C1List1.RowDivider.Color = System.Drawing.Color.DarkGray; this.C1List1.RowDivider.Style = C1.Win.C1List.LineStyleEnum.None; this.C1List1.RowSubDividerColor = System.Drawing.Color.DarkGray; this.C1List1.SelectedStyle = style7; this.C1List1.Size = new System.Drawing.Size(496, 288); this.C1List1.Style = style8; this.C1List1.TabIndex = 0; this.C1List1.Text = "C1List1"; this.C1List1.PropBag = resources.GetString("C1List1.PropBag"); // // label1 // this.label1.Location = new System.Drawing.Point(32, 336); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(80, 16); this.label1.TabIndex = 1; this.label1.Text = "MatchCol"; // // label2 // this.label2.Location = new System.Drawing.Point(168, 336); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(104, 16); this.label2.TabIndex = 2; this.label2.Text = "Compare Mode:"; // // label3 // this.label3.Location = new System.Drawing.Point(304, 336); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(112, 16); this.label3.TabIndex = 3; this.label3.Text = "MatchEntryTimeout:"; // // label4 // this.label4.Location = new System.Drawing.Point(448, 336); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(80, 16); this.label4.TabIndex = 4; this.label4.Text = "MatchEntry:"; // // c1Combo4 // this.c1Combo4.AddItemSeparator = ';'; this.c1Combo4.Caption = ""; this.c1Combo4.CaptionHeight = 17; this.c1Combo4.CaptionStyle = style9; this.c1Combo4.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; this.c1Combo4.ColumnCaptionHeight = 17; this.c1Combo4.ColumnFooterHeight = 17; this.c1Combo4.ComboStyle = C1.Win.C1List.ComboStyleEnum.DropdownList; this.c1Combo4.ContentHeight = 15; this.c1Combo4.DataMode = C1.Win.C1List.DataModeEnum.AddItem; this.c1Combo4.DeadAreaBackColor = System.Drawing.Color.Empty; this.c1Combo4.EditorBackColor = System.Drawing.SystemColors.Window; this.c1Combo4.EditorFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.c1Combo4.EditorForeColor = System.Drawing.SystemColors.WindowText; this.c1Combo4.EditorHeight = 15; this.c1Combo4.EvenRowStyle = style10; this.c1Combo4.FlatStyle = C1.Win.C1List.FlatModeEnum.Standard; this.c1Combo4.FooterStyle = style11; this.c1Combo4.GapHeight = 2; this.c1Combo4.HeadingStyle = style12; this.c1Combo4.HighLightRowStyle = style13; this.c1Combo4.Images.Add(((System.Drawing.Image)(resources.GetObject("c1Combo4.Images")))); this.c1Combo4.ItemHeight = 15; this.c1Combo4.Location = new System.Drawing.Point(304, 360); this.c1Combo4.MatchEntryTimeout = ((long)(100)); this.c1Combo4.MaxDropDownItems = ((short)(5)); this.c1Combo4.MaxLength = 32767; this.c1Combo4.MouseCursor = System.Windows.Forms.Cursors.Default; this.c1Combo4.Name = "c1Combo4"; this.c1Combo4.OddRowStyle = style14; this.c1Combo4.RowDivider.Color = System.Drawing.Color.DarkGray; this.c1Combo4.RowDivider.Style = C1.Win.C1List.LineStyleEnum.None; this.c1Combo4.RowSubDividerColor = System.Drawing.Color.DarkGray; this.c1Combo4.SelectedStyle = style15; this.c1Combo4.Size = new System.Drawing.Size(104, 21); this.c1Combo4.Style = style16; this.c1Combo4.TabIndex = 19; this.c1Combo4.TabStop = false; this.c1Combo4.Text = "C1Combo4"; this.c1Combo4.Change += new C1.Win.C1List.ChangeEventHandler(this.C1Combo4_Change); this.c1Combo4.PropBag = resources.GetString("c1Combo4.PropBag"); // // c1Combo3 // this.c1Combo3.AddItemSeparator = ';'; this.c1Combo3.Caption = ""; this.c1Combo3.CaptionHeight = 17; this.c1Combo3.CaptionStyle = style17; this.c1Combo3.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; this.c1Combo3.ColumnCaptionHeight = 17; this.c1Combo3.ColumnFooterHeight = 17; this.c1Combo3.ComboStyle = C1.Win.C1List.ComboStyleEnum.DropdownList; this.c1Combo3.ContentHeight = 15; this.c1Combo3.DataMode = C1.Win.C1List.DataModeEnum.AddItem; this.c1Combo3.DeadAreaBackColor = System.Drawing.Color.Empty; this.c1Combo3.EditorBackColor = System.Drawing.SystemColors.Window; this.c1Combo3.EditorFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.c1Combo3.EditorForeColor = System.Drawing.SystemColors.WindowText; this.c1Combo3.EditorHeight = 15; this.c1Combo3.EvenRowStyle = style18; this.c1Combo3.FlatStyle = C1.Win.C1List.FlatModeEnum.Standard; this.c1Combo3.FooterStyle = style19; this.c1Combo3.GapHeight = 2; this.c1Combo3.HeadingStyle = style20; this.c1Combo3.HighLightRowStyle = style21; this.c1Combo3.Images.Add(((System.Drawing.Image)(resources.GetObject("c1Combo3.Images")))); this.c1Combo3.ItemHeight = 15; this.c1Combo3.Location = new System.Drawing.Point(448, 360); this.c1Combo3.MatchEntryTimeout = ((long)(100)); this.c1Combo3.MaxDropDownItems = ((short)(5)); this.c1Combo3.MaxLength = 32767; this.c1Combo3.MouseCursor = System.Windows.Forms.Cursors.Default; this.c1Combo3.Name = "c1Combo3"; this.c1Combo3.OddRowStyle = style22; this.c1Combo3.RowDivider.Color = System.Drawing.Color.DarkGray; this.c1Combo3.RowDivider.Style = C1.Win.C1List.LineStyleEnum.None; this.c1Combo3.RowSubDividerColor = System.Drawing.Color.DarkGray; this.c1Combo3.SelectedStyle = style23; this.c1Combo3.Size = new System.Drawing.Size(80, 21); this.c1Combo3.Style = style24; this.c1Combo3.TabIndex = 18; this.c1Combo3.TabStop = false; this.c1Combo3.Text = "C1Combo3"; this.c1Combo3.Change += new C1.Win.C1List.ChangeEventHandler(this.C1Combo3_Change); this.c1Combo3.PropBag = resources.GetString("c1Combo3.PropBag"); // // c1Combo2 // this.c1Combo2.AddItemSeparator = ';'; this.c1Combo2.Caption = ""; this.c1Combo2.CaptionHeight = 17; this.c1Combo2.CaptionStyle = style25; this.c1Combo2.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; this.c1Combo2.ColumnCaptionHeight = 17; this.c1Combo2.ColumnFooterHeight = 17; this.c1Combo2.ComboStyle = C1.Win.C1List.ComboStyleEnum.DropdownList; this.c1Combo2.ContentHeight = 15; this.c1Combo2.DataMode = C1.Win.C1List.DataModeEnum.AddItem; this.c1Combo2.DeadAreaBackColor = System.Drawing.Color.Empty; this.c1Combo2.EditorBackColor = System.Drawing.SystemColors.Window; this.c1Combo2.EditorFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.c1Combo2.EditorForeColor = System.Drawing.SystemColors.WindowText; this.c1Combo2.EditorHeight = 15; this.c1Combo2.EvenRowStyle = style26; this.c1Combo2.FlatStyle = C1.Win.C1List.FlatModeEnum.Standard; this.c1Combo2.FooterStyle = style27; this.c1Combo2.GapHeight = 2; this.c1Combo2.HeadingStyle = style28; this.c1Combo2.HighLightRowStyle = style29; this.c1Combo2.Images.Add(((System.Drawing.Image)(resources.GetObject("c1Combo2.Images")))); this.c1Combo2.ItemHeight = 15; this.c1Combo2.Location = new System.Drawing.Point(168, 360); this.c1Combo2.MatchEntryTimeout = ((long)(100)); this.c1Combo2.MaxDropDownItems = ((short)(5)); this.c1Combo2.MaxLength = 32767; this.c1Combo2.MouseCursor = System.Windows.Forms.Cursors.Default; this.c1Combo2.Name = "c1Combo2"; this.c1Combo2.OddRowStyle = style30; this.c1Combo2.RowDivider.Color = System.Drawing.Color.DarkGray; this.c1Combo2.RowDivider.Style = C1.Win.C1List.LineStyleEnum.None; this.c1Combo2.RowSubDividerColor = System.Drawing.Color.DarkGray; this.c1Combo2.SelectedStyle = style31; this.c1Combo2.Size = new System.Drawing.Size(88, 21); this.c1Combo2.Style = style32; this.c1Combo2.TabIndex = 17; this.c1Combo2.TabStop = false; this.c1Combo2.Text = "C1Combo2"; this.c1Combo2.Change += new C1.Win.C1List.ChangeEventHandler(this.C1Combo2_Change); this.c1Combo2.PropBag = resources.GetString("c1Combo2.PropBag"); // // c1Combo1 // this.c1Combo1.AddItemSeparator = ';'; this.c1Combo1.Caption = ""; this.c1Combo1.CaptionHeight = 17; this.c1Combo1.CaptionStyle = style33; this.c1Combo1.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; this.c1Combo1.ColumnCaptionHeight = 17; this.c1Combo1.ColumnFooterHeight = 17; this.c1Combo1.ComboStyle = C1.Win.C1List.ComboStyleEnum.DropdownList; this.c1Combo1.ContentHeight = 15; this.c1Combo1.DataMode = C1.Win.C1List.DataModeEnum.AddItem; this.c1Combo1.DeadAreaBackColor = System.Drawing.Color.Empty; this.c1Combo1.EditorBackColor = System.Drawing.SystemColors.Window; this.c1Combo1.EditorFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.c1Combo1.EditorForeColor = System.Drawing.SystemColors.WindowText; this.c1Combo1.EditorHeight = 15; this.c1Combo1.EvenRowStyle = style34; this.c1Combo1.FlatStyle = C1.Win.C1List.FlatModeEnum.Standard; this.c1Combo1.FooterStyle = style35; this.c1Combo1.GapHeight = 2; this.c1Combo1.HeadingStyle = style36; this.c1Combo1.HighLightRowStyle = style37; this.c1Combo1.Images.Add(((System.Drawing.Image)(resources.GetObject("c1Combo1.Images")))); this.c1Combo1.ItemHeight = 15; this.c1Combo1.Location = new System.Drawing.Point(32, 360); this.c1Combo1.MatchEntryTimeout = ((long)(100)); this.c1Combo1.MaxDropDownItems = ((short)(5)); this.c1Combo1.MaxLength = 32767; this.c1Combo1.MouseCursor = System.Windows.Forms.Cursors.Default; this.c1Combo1.Name = "c1Combo1"; this.c1Combo1.OddRowStyle = style38; this.c1Combo1.RowDivider.Color = System.Drawing.Color.DarkGray; this.c1Combo1.RowDivider.Style = C1.Win.C1List.LineStyleEnum.None; this.c1Combo1.RowSubDividerColor = System.Drawing.Color.DarkGray; this.c1Combo1.SelectedStyle = style39; this.c1Combo1.Size = new System.Drawing.Size(112, 21); this.c1Combo1.Style = style40; this.c1Combo1.TabIndex = 16; this.c1Combo1.TabStop = false; this.c1Combo1.Text = "C1Combo1"; this.c1Combo1.Change += new C1.Win.C1List.ChangeEventHandler(this.C1Combo1_Change); this.c1Combo1.PropBag = resources.GetString("c1Combo1.PropBag"); // // oleDbSelectCommand1 // this.oleDbSelectCommand1.CommandText = "SELECT Customer.*\r\nFROM Customer"; this.oleDbSelectCommand1.Connection = this.oleDbConnection1; // // oleDbDataAdapter1 // this.oleDbDataAdapter1.SelectCommand = this.oleDbSelectCommand1; this.oleDbDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] { new System.Data.Common.DataTableMapping("Table", "Customer", new System.Data.Common.DataColumnMapping[] { new System.Data.Common.DataColumnMapping("UserCode", "UserCode"), new System.Data.Common.DataColumnMapping("LastName", "LastName"), new System.Data.Common.DataColumnMapping("FirstName", "FirstName"), new System.Data.Common.DataColumnMapping("Company", "Company"), new System.Data.Common.DataColumnMapping("Contacted", "Contacted"), new System.Data.Common.DataColumnMapping("Phone", "Phone"), new System.Data.Common.DataColumnMapping("CustType", "CustType") }) }); // // oleDbConnection1 // this.oleDbConnection1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"..\\..\\..\\Data\\C1ListDemo.mdb\""; // // dsCustomers1 // this.dsCustomers1.DataSetName = "DsCustomers"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(544, 397); this.Controls.Add(this.c1Combo4); this.Controls.Add(this.c1Combo3); this.Controls.Add(this.c1Combo2); this.Controls.Add(this.c1Combo1); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.C1List1); this.Name = "Form1"; this.Text = "C1List .Net Tutorial18"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.C1List1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Combo4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Combo3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Combo2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.c1Combo1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsCustomers1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { C1.Win.C1List.Style style1 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style2 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style3 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style4 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style5 = new C1.Win.C1List.Style(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); C1.Win.C1List.Style style6 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style7 = new C1.Win.C1List.Style(); C1.Win.C1List.Style style8 = new C1.Win.C1List.Style(); this.C1List1 = new C1.Win.C1List.C1List(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand(); this.oleDbDataAdapter1 = new System.Data.OleDb.OleDbDataAdapter(); this.oleDbConnection1 = new System.Data.OleDb.OleDbConnection(); this.dsCustomers1 = new Tutorial10.DsCustomers(); ((System.ComponentModel.ISupportInitialize)(this.C1List1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dsCustomers1)).BeginInit(); this.SuspendLayout(); // // C1List1 // this.C1List1.AddItemSeparator = ';'; this.C1List1.CaptionHeight = 17; this.C1List1.CaptionStyle = style1; this.C1List1.ColumnCaptionHeight = 17; this.C1List1.ColumnFooterHeight = 17; this.C1List1.ColumnWidth = 100; this.C1List1.DataMember = "Customer"; this.C1List1.DataSource = this.dsCustomers1; this.C1List1.DeadAreaBackColor = System.Drawing.SystemColors.ControlDark; this.C1List1.EvenRowStyle = style2; this.C1List1.FooterStyle = style3; this.C1List1.HeadingStyle = style4; this.C1List1.HighLightRowStyle = style5; this.C1List1.Images.Add(((System.Drawing.Image)(resources.GetObject("C1List1.Images")))); this.C1List1.ItemHeight = 15; this.C1List1.Location = new System.Drawing.Point(40, 16); this.C1List1.MatchEntryTimeout = ((long)(2000)); this.C1List1.Name = "C1List1"; this.C1List1.OddRowStyle = style6; this.C1List1.RowDivider.Color = System.Drawing.Color.DarkGray; this.C1List1.RowDivider.Style = C1.Win.C1List.LineStyleEnum.None; this.C1List1.RowSubDividerColor = System.Drawing.Color.DarkGray; this.C1List1.SelectedStyle = style7; this.C1List1.Size = new System.Drawing.Size(560, 240); this.C1List1.Style = style8; this.C1List1.TabIndex = 0; this.C1List1.Text = "C1List1"; this.C1List1.FetchRowStyle += new C1.Win.C1List.FetchRowStyleEventHandler(this.C1List1_FetchRowStyle); this.C1List1.PropBag = resources.GetString("C1List1.PropBag"); // // button1 // this.button1.Location = new System.Drawing.Point(40, 280); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(128, 32); this.button1.TabIndex = 1; this.button1.Text = "Prospective Customers"; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(256, 280); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(128, 32); this.button2.TabIndex = 2; this.button2.Text = "Distributors"; this.button2.Click += new System.EventHandler(this.button2_Click); // // button3 // this.button3.Location = new System.Drawing.Point(472, 280); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(128, 32); this.button3.TabIndex = 3; this.button3.Text = "Reset the List"; this.button3.Click += new System.EventHandler(this.button3_Click); // // oleDbSelectCommand1 // this.oleDbSelectCommand1.CommandText = "SELECT Customer.*\r\nFROM Customer"; this.oleDbSelectCommand1.Connection = this.oleDbConnection1; // // oleDbDataAdapter1 // this.oleDbDataAdapter1.SelectCommand = this.oleDbSelectCommand1; this.oleDbDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] { new System.Data.Common.DataTableMapping("Table", "Customer", new System.Data.Common.DataColumnMapping[] { new System.Data.Common.DataColumnMapping("UserCode", "UserCode"), new System.Data.Common.DataColumnMapping("LastName", "LastName"), new System.Data.Common.DataColumnMapping("FirstName", "FirstName"), new System.Data.Common.DataColumnMapping("Company", "Company"), new System.Data.Common.DataColumnMapping("Contacted", "Contacted"), new System.Data.Common.DataColumnMapping("Phone", "Phone"), new System.Data.Common.DataColumnMapping("CustType", "CustType") }) }); // // oleDbConnection1 // this.oleDbConnection1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"..\\..\\..\\Data\\C1ListDemo.mdb\""; // // dsCustomers1 // this.dsCustomers1.DataSetName = "DsCustomers"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(632, 325); this.Controls.Add(this.button3); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Controls.Add(this.C1List1); this.Name = "Form1"; this.Text = "C1List .Net Tutorial10"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.C1List1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dsCustomers1)).EndInit(); this.ResumeLayout(false); }