private void C1Combo5_RowChange(object sender, System.EventArgs e) { switch ((string)this.C1Combo5.Text) { case "Fillet": this.bType = C1.Win.C1List.BorderTypeEnum.Fillet; break; case "Flat": this.bType = C1.Win.C1List.BorderTypeEnum.Flat; break; case "Groove": this.bType = C1.Win.C1List.BorderTypeEnum.Groove; break; case "Inset": this.bType = C1.Win.C1List.BorderTypeEnum.Inset; break; case "InsetBevel": this.bType = C1.Win.C1List.BorderTypeEnum.InsetBevel; break; case "None": this.bType = C1.Win.C1List.BorderTypeEnum.None; break; case "Raised": this.bType = C1.Win.C1List.BorderTypeEnum.Raised; break; case "RaisedBevel": this.bType = C1.Win.C1List.BorderTypeEnum.RaisedBevel; break; } this.UpdateBorder(); }
private void Form1_Load(object sender, System.EventArgs e) { this.oleDbConnection1.ConnectionString = AdjustConnectionString(this.oleDbConnection1.ConnectionString); this.oleDbDataAdapter1.Fill(this.dsCustomer1); tb = this.dsCustomer1.Tables[0].Copy(); this.C1List1.ItemHeight = 40; //Fill each combo this.checkBox2.Checked = true; FillCombo(ref this.C1Combo1); FillCombo(ref this.C1Combo2); FillCombo(ref this.C1Combo3); FillCombo(ref this.C1Combo4); FillCombo5(); //Init border size this.bBottom = 1; this.bTop = 1; this.bLeft = 1; this.bRight = 1; this.bType = C1.Win.C1List.BorderTypeEnum.None; }