private void InitializeComponent() { this.splitContainerMain = new SplitContainer(); this.OptionsTree = new GPGTreeView(); this.splitContainerGridAndLabel = new SplitContainer(); this.pgcProps = new PropertyGridControl(); this.riComboBox = new RepositoryItemComboBox(); this.repositoryItemColorEdit1 = new RepositoryItemColorEdit(); this.repositoryItemTextEdit1 = new RepositoryItemTextEdit(); this.repositoryItemLookUpEdit1 = new RepositoryItemLookUpEdit(); this.repositoryItemComboBox1 = new RepositoryItemComboBox(); this.repositoryItemTextEdit2 = new RepositoryItemTextEdit(); this.editor_Color = new RepositoryItemColorEdit(); this.repositoryItemTextEdit3 = new RepositoryItemTextEdit(); this.gpgLabelDescription = new GPGLabel(); this.splitContainerMain.Panel1.SuspendLayout(); this.splitContainerMain.Panel2.SuspendLayout(); this.splitContainerMain.SuspendLayout(); this.splitContainerGridAndLabel.Panel1.SuspendLayout(); this.splitContainerGridAndLabel.Panel2.SuspendLayout(); this.splitContainerGridAndLabel.SuspendLayout(); this.pgcProps.BeginInit(); this.riComboBox.BeginInit(); this.repositoryItemColorEdit1.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.repositoryItemLookUpEdit1.BeginInit(); this.repositoryItemComboBox1.BeginInit(); this.repositoryItemTextEdit2.BeginInit(); this.editor_Color.BeginInit(); this.repositoryItemTextEdit3.BeginInit(); base.SuspendLayout(); this.splitContainerMain.BackColor = Color.FromArgb(0xcc, 0xcc, 0xff); this.splitContainerMain.Dock = DockStyle.Fill; this.splitContainerMain.Location = new Point(2, 2); this.splitContainerMain.Margin = new Padding(0); this.splitContainerMain.Name = "splitContainerMain"; this.splitContainerMain.Panel1.Controls.Add(this.OptionsTree); this.splitContainerMain.Panel2.Controls.Add(this.splitContainerGridAndLabel); this.splitContainerMain.Size = new Size(0x1cf, 0x12f); this.splitContainerMain.SplitterDistance = 0x99; this.splitContainerMain.TabIndex = 1; this.OptionsTree.BackColor = Color.Black; this.OptionsTree.BorderStyle = BorderStyle.None; this.OptionsTree.Dock = DockStyle.Fill; this.OptionsTree.ForeColor = Color.White; this.OptionsTree.HideSelection = false; this.OptionsTree.Location = new Point(0, 0); this.OptionsTree.Margin = new Padding(0); this.OptionsTree.Name = "OptionsTree"; this.OptionsTree.Size = new Size(0x99, 0x12f); this.OptionsTree.TabIndex = 0; this.splitContainerGridAndLabel.Dock = DockStyle.Fill; this.splitContainerGridAndLabel.Location = new Point(0, 0); this.splitContainerGridAndLabel.Name = "splitContainerGridAndLabel"; this.splitContainerGridAndLabel.Orientation = Orientation.Horizontal; this.splitContainerGridAndLabel.Panel1.BackColor = Color.LightSteelBlue; this.splitContainerGridAndLabel.Panel1.Controls.Add(this.pgcProps); this.splitContainerGridAndLabel.Panel2.Controls.Add(this.gpgLabelDescription); this.splitContainerGridAndLabel.Size = new Size(0x132, 0x12f); this.splitContainerGridAndLabel.SplitterDistance = 0xe7; this.splitContainerGridAndLabel.SplitterWidth = 2; this.splitContainerGridAndLabel.TabIndex = 0; this.pgcProps.Appearance.Empty.BackColor = Color.LightSteelBlue; this.pgcProps.Appearance.Empty.Options.UseBackColor = true; this.pgcProps.AutoGenerateRows = true; this.pgcProps.BorderStyle = BorderStyles.NoBorder; this.pgcProps.DefaultEditors.AddRange(new DevExpress.XtraVerticalGrid.Rows.DefaultEditor[] { new DevExpress.XtraVerticalGrid.Rows.DefaultEditor(null, this.riComboBox), new DevExpress.XtraVerticalGrid.Rows.DefaultEditor(typeof(Color), this.repositoryItemColorEdit1) }); this.pgcProps.Dock = DockStyle.Fill; this.pgcProps.Location = new Point(0, 0); this.pgcProps.LookAndFeel.SkinName = "Money Twins"; this.pgcProps.LookAndFeel.UseDefaultLookAndFeel = false; this.pgcProps.Margin = new Padding(0); this.pgcProps.Name = "pgcProps"; this.pgcProps.OptionsBehavior.UseEnterAsTab = true; this.pgcProps.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemTextEdit1, this.repositoryItemLookUpEdit1, this.repositoryItemComboBox1, this.riComboBox, this.repositoryItemTextEdit2, this.editor_Color, this.repositoryItemColorEdit1, this.repositoryItemTextEdit3 }); this.pgcProps.Size = new Size(0x132, 0xe7); this.pgcProps.TabIndex = 4; this.pgcProps.RowChanging += new RowChangingEventHandler(this.pgcProps_RowChanging); this.riComboBox.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.riComboBox.Items.AddRange(new object[] { "None", "True", "False" }); this.riComboBox.Name = "riComboBox"; this.repositoryItemColorEdit1.AutoHeight = false; this.repositoryItemColorEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemColorEdit1.Name = "repositoryItemColorEdit1"; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.repositoryItemLookUpEdit1.AutoHeight = false; this.repositoryItemLookUpEdit1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemLookUpEdit1.Name = "repositoryItemLookUpEdit1"; this.repositoryItemComboBox1.AutoHeight = false; this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.repositoryItemComboBox1.Name = "repositoryItemComboBox1"; this.repositoryItemTextEdit2.Appearance.Options.UseTextOptions = true; this.repositoryItemTextEdit2.Appearance.TextOptions.HAlignment = HorzAlignment.Near; this.repositoryItemTextEdit2.AppearanceDisabled.Options.UseTextOptions = true; this.repositoryItemTextEdit2.AppearanceDisabled.TextOptions.HAlignment = HorzAlignment.Near; this.repositoryItemTextEdit2.AppearanceFocused.Options.UseTextOptions = true; this.repositoryItemTextEdit2.AppearanceFocused.TextOptions.HAlignment = HorzAlignment.Near; this.repositoryItemTextEdit2.AutoHeight = false; this.repositoryItemTextEdit2.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit2.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit2.HideSelection = false; this.repositoryItemTextEdit2.Name = "repositoryItemTextEdit2"; this.editor_Color.AutoHeight = false; this.editor_Color.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) }); this.editor_Color.Name = "editor_Color"; this.repositoryItemTextEdit3.AutoHeight = false; this.repositoryItemTextEdit3.Name = "repositoryItemTextEdit3"; this.gpgLabelDescription.AutoStyle = false; this.gpgLabelDescription.BackColor = Color.LightSteelBlue; this.gpgLabelDescription.Dock = DockStyle.Fill; this.gpgLabelDescription.Font = new Font("Verdana", 8f, FontStyle.Bold, GraphicsUnit.Point, 0); this.gpgLabelDescription.ForeColor = Color.Black; this.gpgLabelDescription.IgnoreMouseWheel = false; this.gpgLabelDescription.IsStyled = false; this.gpgLabelDescription.Location = new Point(0, 0); this.gpgLabelDescription.Name = "gpgLabelDescription"; this.gpgLabelDescription.Size = new Size(0x132, 70); this.gpgLabelDescription.TabIndex = 0; this.gpgLabelDescription.TextAlign = ContentAlignment.MiddleCenter; this.gpgLabelDescription.TextStyle = TextStyles.Default; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.Black; base.Controls.Add(this.splitContainerMain); base.Margin = new Padding(0); base.Name = "GPGOptionsEditor"; base.Padding = new Padding(2); base.Size = new Size(0x1d3, 0x133); this.splitContainerMain.Panel1.ResumeLayout(false); this.splitContainerMain.Panel2.ResumeLayout(false); this.splitContainerMain.ResumeLayout(false); this.splitContainerGridAndLabel.Panel1.ResumeLayout(false); this.splitContainerGridAndLabel.Panel2.ResumeLayout(false); this.splitContainerGridAndLabel.ResumeLayout(false); this.pgcProps.EndInit(); this.riComboBox.EndInit(); this.repositoryItemColorEdit1.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.repositoryItemLookUpEdit1.EndInit(); this.repositoryItemComboBox1.EndInit(); this.repositoryItemTextEdit2.EndInit(); this.editor_Color.EndInit(); this.repositoryItemTextEdit3.EndInit(); base.ResumeLayout(false); }
private void SetTabPageProperties(int pageIndex) { XtraTabPage page = this.tabControl.TabPages[pageIndex]; ColorListBox box = null; BaseControl control = null; switch (pageIndex) { case 0: { page.Text = Localizer.Active.GetLocalizedString(0); control = new ColorCellsControl(null); RepositoryItemColorEdit edit = new RepositoryItemColorEdit(); edit.ShowColorDialog = false; (control as ColorCellsControl).Properties = edit; (control as ColorCellsControl).EnterColor += new EnterColorEventHandler(this.OnEnterColor); control.Size = ColorCellsControlViewInfo.BestSize; break; } case 1: //page.Text = Localizer.Active.GetLocalizedString(0); page.Text = "Màu web"; box = this.CreateColorListBox(); box.Items.AddRange(ColorListBoxViewInfo.WebColors); box.EnterColor +=(new EnterColorEventHandler(this.OnEnterColor)); control = box; break; case 2: //page.Text = Localizer.Active.GetLocalizedString(0); page.Text = "Màu hệ thống"; box = this.CreateColorListBox(); box.Items.AddRange(ColorListBoxViewInfo.SystemColors); box.EnterColor +=new EnterColorEventHandler(this.OnEnterColor); control = box; break; } control.Dock = DockStyle.Fill; control.BorderStyle = BorderStyles.NoBorder; control.LookAndFeel.ParentLookAndFeel = (itemFontColor.Manager.GetController().LookAndFeel); page.Controls.Add(control); }