private void InitForm()
 {
     System.Windows.Forms.Label label = new System.Windows.Forms.Label();
     this.formatTree = new System.Windows.Forms.TreeView();
     this.stylePanel = new System.Windows.Forms.Panel();
     GroupLabel label2 = new GroupLabel();
     System.Windows.Forms.Label label3 = new System.Windows.Forms.Label();
     this.foreColorCombo = new ColorComboBox();
     this.foreColorPickerButton = new System.Windows.Forms.Button();
     System.Windows.Forms.Label label4 = new System.Windows.Forms.Label();
     this.backColorCombo = new ColorComboBox();
     this.backColorPickerButton = new System.Windows.Forms.Button();
     System.Windows.Forms.Label label5 = new System.Windows.Forms.Label();
     this.fontNameCombo = new ComboBox();
     System.Windows.Forms.Label label6 = new System.Windows.Forms.Label();
     this.fontSizeCombo = new UnsettableComboBox();
     this.fontSizeUnit = new UnitControl();
     this.boldCheck = new System.Windows.Forms.CheckBox();
     this.italicCheck = new System.Windows.Forms.CheckBox();
     this.underlineCheck = new System.Windows.Forms.CheckBox();
     this.strikeOutCheck = new System.Windows.Forms.CheckBox();
     this.overlineCheck = new System.Windows.Forms.CheckBox();
     GroupLabel label7 = new GroupLabel();
     System.Windows.Forms.Label label8 = new System.Windows.Forms.Label();
     this.horzAlignCombo = new UnsettableComboBox();
     this.vertAlignLabel = new System.Windows.Forms.Label();
     this.vertAlignCombo = new UnsettableComboBox();
     this.allowWrappingCheck = new System.Windows.Forms.CheckBox();
     GroupLabel label9 = null;
     System.Windows.Forms.Label label10 = null;
     if (base.IsDataGridMode)
     {
         this.columnPanel = new System.Windows.Forms.Panel();
         label9 = new GroupLabel();
         label10 = new System.Windows.Forms.Label();
         this.widthUnit = new UnitControl();
     }
     label.SetBounds(4, 4, 0x6f, 14);
     label.Text = System.Design.SR.GetString("BDLFmt_Objects");
     label.TabStop = false;
     label.TabIndex = 2;
     this.formatTree.SetBounds(4, 20, 0xa2, 350);
     this.formatTree.HideSelection = false;
     this.formatTree.TabIndex = 3;
     this.formatTree.AfterSelect += new TreeViewEventHandler(this.OnSelChangedFormatObject);
     this.stylePanel.SetBounds(0xb1, 4, 230, 370);
     this.stylePanel.TabIndex = 6;
     this.stylePanel.Visible = false;
     label2.SetBounds(0, 2, 0xe0, 14);
     label2.Text = System.Design.SR.GetString("BDLFmt_AppearanceGroup");
     label2.TabStop = false;
     label2.TabIndex = 1;
     label3.SetBounds(8, 0x13, 160, 14);
     label3.Text = System.Design.SR.GetString("BDLFmt_ForeColor");
     label3.TabStop = false;
     label3.TabIndex = 2;
     this.foreColorCombo.SetBounds(8, 0x25, 0x66, 0x16);
     this.foreColorCombo.TabIndex = 3;
     this.foreColorCombo.TextChanged += new EventHandler(this.OnFormatChanged);
     this.foreColorCombo.SelectedIndexChanged += new EventHandler(this.OnFormatChanged);
     this.foreColorPickerButton.SetBounds(0x72, 0x24, 0x18, 0x16);
     this.foreColorPickerButton.TabIndex = 4;
     this.foreColorPickerButton.Text = "...";
     this.foreColorPickerButton.FlatStyle = FlatStyle.System;
     this.foreColorPickerButton.Click += new EventHandler(this.OnClickForeColorPicker);
     this.foreColorPickerButton.AccessibleName = System.Design.SR.GetString("BDLFmt_ChooseColorButton");
     this.foreColorPickerButton.AccessibleDescription = System.Design.SR.GetString("BDLFmt_ChooseForeColorDesc");
     label4.SetBounds(8, 0x3e, 160, 14);
     label4.Text = System.Design.SR.GetString("BDLFmt_BackColor");
     label4.TabStop = false;
     label4.TabIndex = 5;
     this.backColorCombo.SetBounds(8, 0x4e, 0x66, 0x16);
     this.backColorCombo.TabIndex = 6;
     this.backColorCombo.TextChanged += new EventHandler(this.OnFormatChanged);
     this.backColorCombo.SelectedIndexChanged += new EventHandler(this.OnFormatChanged);
     this.backColorPickerButton.SetBounds(0x72, 0x4d, 0x18, 0x16);
     this.backColorPickerButton.TabIndex = 7;
     this.backColorPickerButton.Text = "...";
     this.backColorPickerButton.FlatStyle = FlatStyle.System;
     this.backColorPickerButton.Click += new EventHandler(this.OnClickBackColorPicker);
     this.backColorPickerButton.AccessibleName = System.Design.SR.GetString("BDLFmt_ChooseColorButton");
     this.backColorPickerButton.AccessibleDescription = System.Design.SR.GetString("BDLFmt_ChooseBackColorDesc");
     label5.SetBounds(8, 0x68, 160, 14);
     label5.Text = System.Design.SR.GetString("BDLFmt_FontName");
     label5.TabStop = false;
     label5.TabIndex = 8;
     this.fontNameCombo.SetBounds(8, 120, 200, 0x16);
     this.fontNameCombo.Sorted = true;
     this.fontNameCombo.TabIndex = 9;
     this.fontNameCombo.SelectedIndexChanged += new EventHandler(this.OnFontNameChanged);
     this.fontNameCombo.TextChanged += new EventHandler(this.OnFontNameChanged);
     label6.SetBounds(8, 0x92, 160, 14);
     label6.Text = System.Design.SR.GetString("BDLFmt_FontSize");
     label6.TabStop = false;
     label6.TabIndex = 10;
     this.fontSizeCombo.SetBounds(8, 0xa2, 100, 0x16);
     this.fontSizeCombo.TabIndex = 11;
     this.fontSizeCombo.MaxDropDownItems = 11;
     this.fontSizeCombo.DropDownStyle = ComboBoxStyle.DropDownList;
     this.fontSizeCombo.Items.AddRange(new object[] { System.Design.SR.GetString("BDLFmt_FS_Smaller"), System.Design.SR.GetString("BDLFmt_FS_Larger"), System.Design.SR.GetString("BDLFmt_FS_XXSmall"), System.Design.SR.GetString("BDLFmt_FS_XSmall"), System.Design.SR.GetString("BDLFmt_FS_Small"), System.Design.SR.GetString("BDLFmt_FS_Medium"), System.Design.SR.GetString("BDLFmt_FS_Large"), System.Design.SR.GetString("BDLFmt_FS_XLarge"), System.Design.SR.GetString("BDLFmt_FS_XXLarge"), System.Design.SR.GetString("BDLFmt_FS_Custom") });
     this.fontSizeCombo.SelectedIndexChanged += new EventHandler(this.OnFontSizeChanged);
     this.fontSizeUnit.SetBounds(0x70, 0xa2, 0x60, 0x16);
     this.fontSizeUnit.AllowNegativeValues = false;
     this.fontSizeUnit.TabIndex = 12;
     this.fontSizeUnit.Changed += new EventHandler(this.OnFormatChanged);
     this.fontSizeUnit.ValueAccessibleDescription = System.Design.SR.GetString("BDLFmt_FontSizeValueDesc");
     this.fontSizeUnit.ValueAccessibleName = System.Design.SR.GetString("BDLFmt_FontSizeValueName");
     this.fontSizeUnit.UnitAccessibleDescription = System.Design.SR.GetString("BDLFmt_FontSizeUnitDesc");
     this.fontSizeUnit.UnitAccessibleName = System.Design.SR.GetString("BDLFmt_FontSizeUnitName");
     this.boldCheck.SetBounds(8, 0xba, 0x6a, 20);
     this.boldCheck.Text = System.Design.SR.GetString("BDLFmt_FontBold");
     this.boldCheck.TabIndex = 13;
     this.boldCheck.TextAlign = ContentAlignment.MiddleLeft;
     this.boldCheck.FlatStyle = FlatStyle.System;
     this.boldCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
     this.italicCheck.SetBounds(8, 0xcc, 0x6a, 20);
     this.italicCheck.Text = System.Design.SR.GetString("BDLFmt_FontItalic");
     this.italicCheck.TabIndex = 14;
     this.italicCheck.TextAlign = ContentAlignment.MiddleLeft;
     this.italicCheck.FlatStyle = FlatStyle.System;
     this.italicCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
     this.underlineCheck.SetBounds(8, 0xde, 0x6a, 20);
     this.underlineCheck.Text = System.Design.SR.GetString("BDLFmt_FontUnderline");
     this.underlineCheck.TabIndex = 15;
     this.underlineCheck.TextAlign = ContentAlignment.MiddleLeft;
     this.underlineCheck.FlatStyle = FlatStyle.System;
     this.underlineCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
     this.strikeOutCheck.SetBounds(120, 0xba, 0x6a, 20);
     this.strikeOutCheck.Text = System.Design.SR.GetString("BDLFmt_FontStrikeout");
     this.strikeOutCheck.TabIndex = 0x10;
     this.strikeOutCheck.TextAlign = ContentAlignment.MiddleLeft;
     this.strikeOutCheck.FlatStyle = FlatStyle.System;
     this.strikeOutCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
     this.overlineCheck.SetBounds(120, 0xcc, 0x6a, 20);
     this.overlineCheck.Text = System.Design.SR.GetString("BDLFmt_FontOverline");
     this.overlineCheck.TabIndex = 0x11;
     this.overlineCheck.TextAlign = ContentAlignment.MiddleLeft;
     this.overlineCheck.FlatStyle = FlatStyle.System;
     this.overlineCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
     label7.SetBounds(0, 0xf6, 0xe0, 14);
     label7.Text = System.Design.SR.GetString("BDLFmt_AlignmentGroup");
     label7.TabStop = false;
     label7.TabIndex = 0x12;
     label8.SetBounds(8, 0x108, 160, 14);
     label8.Text = System.Design.SR.GetString("BDLFmt_HorzAlign");
     label8.TabStop = false;
     label8.TabIndex = 0x13;
     this.horzAlignCombo.SetBounds(8, 280, 190, 0x16);
     this.horzAlignCombo.DropDownStyle = ComboBoxStyle.DropDownList;
     this.horzAlignCombo.Items.AddRange(new object[] { System.Design.SR.GetString("BDLFmt_HA_Left"), System.Design.SR.GetString("BDLFmt_HA_Center"), System.Design.SR.GetString("BDLFmt_HA_Right"), System.Design.SR.GetString("BDLFmt_HA_Justify") });
     this.horzAlignCombo.TabIndex = 20;
     this.horzAlignCombo.SelectedIndexChanged += new EventHandler(this.OnFormatChanged);
     this.vertAlignLabel.SetBounds(8, 0x132, 160, 14);
     this.vertAlignLabel.Text = System.Design.SR.GetString("BDLFmt_VertAlign");
     this.vertAlignLabel.TabStop = false;
     this.vertAlignLabel.TabIndex = 0x15;
     this.vertAlignCombo.SetBounds(8, 0x142, 190, 0x16);
     this.vertAlignCombo.DropDownStyle = ComboBoxStyle.DropDownList;
     this.vertAlignCombo.Items.AddRange(new object[] { System.Design.SR.GetString("BDLFmt_VA_Top"), System.Design.SR.GetString("BDLFmt_VA_Middle"), System.Design.SR.GetString("BDLFmt_VA_Bottom") });
     this.vertAlignCombo.TabIndex = 0x16;
     this.vertAlignCombo.SelectedIndexChanged += new EventHandler(this.OnFormatChanged);
     this.allowWrappingCheck.SetBounds(8, 0x15c, 200, 0x11);
     this.allowWrappingCheck.Text = System.Design.SR.GetString("BDLFmt_AllowWrapping");
     this.allowWrappingCheck.TabIndex = 0x18;
     this.allowWrappingCheck.FlatStyle = FlatStyle.System;
     this.allowWrappingCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
     if (base.IsDataGridMode)
     {
         this.columnPanel.SetBounds(0xb1, 4, 0x117, 350);
         this.columnPanel.TabIndex = 7;
         this.columnPanel.Visible = false;
         label9.SetBounds(0, 0, 0x117, 14);
         label9.Text = System.Design.SR.GetString("BDLFmt_LayoutGroup");
         label9.TabStop = false;
         label9.TabIndex = 0;
         label10.SetBounds(8, 20, 0x40, 14);
         label10.Text = System.Design.SR.GetString("BDLFmt_Width");
         label10.TabStop = false;
         label10.TabIndex = 1;
         this.widthUnit.SetBounds(80, 0x11, 0x66, 0x16);
         this.widthUnit.AllowNegativeValues = false;
         this.widthUnit.DefaultUnit = 0;
         this.widthUnit.TabIndex = 2;
         this.widthUnit.Changed += new EventHandler(this.OnFormatChanged);
         this.widthUnit.ValueAccessibleName = System.Design.SR.GetString("BDLFmt_WidthValueName");
         this.widthUnit.ValueAccessibleDescription = System.Design.SR.GetString("BDLFmt_WidthValueDesc");
         this.widthUnit.UnitAccessibleName = System.Design.SR.GetString("BDLFmt_WidthUnitName");
         this.widthUnit.UnitAccessibleDescription = System.Design.SR.GetString("BDLFmt_WidthUnitDesc");
     }
     this.Text = System.Design.SR.GetString("BDLFmt_Text");
     base.AccessibleDescription = System.Design.SR.GetString("BDLFmt_Desc");
     base.Size = new Size(0x198, 370);
     base.CommitOnDeactivate = true;
     base.Icon = new Icon(base.GetType(), "FormatPage.ico");
     this.stylePanel.Controls.Clear();
     this.stylePanel.Controls.AddRange(new Control[] { 
         this.allowWrappingCheck, this.vertAlignCombo, this.vertAlignLabel, this.horzAlignCombo, label8, label7, this.overlineCheck, this.strikeOutCheck, this.underlineCheck, this.italicCheck, this.boldCheck, this.fontSizeUnit, this.fontSizeCombo, label6, this.fontNameCombo, label5, 
         this.backColorPickerButton, this.backColorCombo, label4, this.foreColorPickerButton, this.foreColorCombo, label3, label2
      });
     if (base.IsDataGridMode)
     {
         this.columnPanel.Controls.Clear();
         this.columnPanel.Controls.AddRange(new Control[] { this.widthUnit, label10, label9 });
         base.Controls.Clear();
         base.Controls.AddRange(new Control[] { this.columnPanel, this.stylePanel, this.formatTree, label });
     }
     else
     {
         base.Controls.Clear();
         base.Controls.AddRange(new Control[] { this.stylePanel, this.formatTree, label });
     }
 }
 private void InitForm()
 {
     GroupLabel label = new GroupLabel();
     System.Windows.Forms.Label label2 = new System.Windows.Forms.Label();
     this.cellPaddingEdit = new NumberEdit();
     System.Windows.Forms.Label label3 = new System.Windows.Forms.Label();
     this.cellSpacingEdit = new NumberEdit();
     GroupLabel label4 = new GroupLabel();
     System.Windows.Forms.Label label5 = new System.Windows.Forms.Label();
     this.gridLinesCombo = new ComboBox();
     System.Windows.Forms.Label label6 = new System.Windows.Forms.Label();
     this.borderColorCombo = new ColorComboBox();
     this.borderColorPickerButton = new System.Windows.Forms.Button();
     System.Windows.Forms.Label label7 = new System.Windows.Forms.Label();
     this.borderWidthUnit = new UnitControl();
     label.SetBounds(4, 4, 300, 0x10);
     label.Text = System.Design.SR.GetString("BDLBor_CellMarginsGroup");
     label.TabStop = false;
     label.TabIndex = 0;
     label2.Text = System.Design.SR.GetString("BDLBor_CellPadding");
     label2.SetBounds(12, 0x18, 120, 14);
     label2.TabStop = false;
     label2.TabIndex = 1;
     this.cellPaddingEdit.SetBounds(12, 40, 70, 20);
     this.cellPaddingEdit.AllowDecimal = false;
     this.cellPaddingEdit.AllowNegative = false;
     this.cellPaddingEdit.TabIndex = 2;
     this.cellPaddingEdit.TextChanged += new EventHandler(this.OnBordersChanged);
     label3.Text = System.Design.SR.GetString("BDLBor_CellSpacing");
     label3.SetBounds(160, 0x18, 120, 14);
     label3.TabStop = false;
     label3.TabIndex = 3;
     this.cellSpacingEdit.SetBounds(160, 40, 70, 20);
     this.cellSpacingEdit.AllowDecimal = false;
     this.cellSpacingEdit.AllowNegative = false;
     this.cellSpacingEdit.TabIndex = 4;
     this.cellSpacingEdit.TextChanged += new EventHandler(this.OnBordersChanged);
     label4.SetBounds(4, 70, 300, 0x10);
     label4.Text = System.Design.SR.GetString("BDLBor_BorderLinesGroup");
     label4.TabStop = false;
     label4.TabIndex = 5;
     label5.Text = System.Design.SR.GetString("BDLBor_GridLines");
     label5.SetBounds(12, 90, 150, 14);
     label5.TabStop = false;
     label5.TabIndex = 6;
     this.gridLinesCombo.SetBounds(12, 0x6a, 140, 0x15);
     this.gridLinesCombo.DropDownStyle = ComboBoxStyle.DropDownList;
     this.gridLinesCombo.Items.Clear();
     this.gridLinesCombo.Items.AddRange(new object[] { System.Design.SR.GetString("BDLBor_GL_Horz"), System.Design.SR.GetString("BDLBor_GL_Vert"), System.Design.SR.GetString("BDLBor_GL_Both"), System.Design.SR.GetString("BDLBor_GL_None") });
     this.gridLinesCombo.TabIndex = 7;
     this.gridLinesCombo.SelectedIndexChanged += new EventHandler(this.OnBordersChanged);
     label6.Text = System.Design.SR.GetString("BDLBor_BorderColor");
     label6.SetBounds(12, 0x86, 150, 14);
     label6.TabStop = false;
     label6.TabIndex = 8;
     this.borderColorCombo.SetBounds(12, 150, 140, 0x15);
     this.borderColorCombo.TabIndex = 9;
     this.borderColorCombo.TextChanged += new EventHandler(this.OnBordersChanged);
     this.borderColorCombo.SelectedIndexChanged += new EventHandler(this.OnBordersChanged);
     this.borderColorPickerButton.SetBounds(0x9c, 0x95, 0x18, 0x16);
     this.borderColorPickerButton.Text = "...";
     this.borderColorPickerButton.TabIndex = 10;
     this.borderColorPickerButton.FlatStyle = FlatStyle.System;
     this.borderColorPickerButton.Click += new EventHandler(this.OnClickColorPicker);
     this.borderColorPickerButton.AccessibleName = System.Design.SR.GetString("BDLBor_ChooseColorButton");
     this.borderColorPickerButton.AccessibleDescription = System.Design.SR.GetString("BDLBor_ChooseColorDesc");
     label7.Text = System.Design.SR.GetString("BDLBor_BorderWidth");
     label7.SetBounds(12, 0xb2, 150, 14);
     label7.TabStop = false;
     label7.TabIndex = 11;
     this.borderWidthUnit.SetBounds(12, 0xc2, 0x66, 0x16);
     this.borderWidthUnit.AllowNegativeValues = false;
     this.borderWidthUnit.AllowPercentValues = false;
     this.borderWidthUnit.DefaultUnit = 0;
     this.borderWidthUnit.TabIndex = 12;
     this.borderWidthUnit.Changed += new EventHandler(this.OnBordersChanged);
     this.borderWidthUnit.ValueAccessibleDescription = System.Design.SR.GetString("BDLBor_BorderWidthValueDesc");
     this.borderWidthUnit.ValueAccessibleName = System.Design.SR.GetString("BDLBor_BorderWidthValueName");
     this.borderWidthUnit.UnitAccessibleDescription = System.Design.SR.GetString("BDLBor_BorderWidthUnitDesc");
     this.borderWidthUnit.UnitAccessibleName = System.Design.SR.GetString("BDLBor_BorderWidthUnitName");
     this.Text = System.Design.SR.GetString("BDLBor_Text");
     base.AccessibleDescription = System.Design.SR.GetString("BDLBor_Desc");
     base.Size = new Size(0x134, 0x9c);
     base.CommitOnDeactivate = true;
     base.Icon = new Icon(base.GetType(), "BordersPage.ico");
     base.Controls.Clear();
     base.Controls.AddRange(new Control[] { this.borderWidthUnit, label7, this.borderColorPickerButton, this.borderColorCombo, label6, this.gridLinesCombo, label5, label4, this.cellSpacingEdit, label3, this.cellPaddingEdit, label2, label });
 }