private void MovingAverages() { var tree = new TreeNode("Moving Average") { //DefaultOpened = true, FrameType = IToolTreeNode.TreeNodeFrameType.Framed }; Group.AddComponent(tree); tool_MA_Count = new InputInt1("Count", 1) { Max = 2, Min = 1 }; tree.AddComponent(tool_MA_Count); tool_MA_LineColor = new ColorEdit("Color", new Color(100, 100, 255)) { EditAlpha = false }; tree.AddComponent(tool_MA_LineColor); var button_Do = new Button("Create Line"); button_Do.Clicked += new EventHandler(Tool_MA_Button_Do); tree.AddComponent(button_Do); }
internal static void ResetFont(FontSelect form) { FontEdit fontEdit = form.fontEdit; ColorEdit colorEdit = form.colorEdit; NumericUpDown sizeNumericUpDown = form.sizeNumericUpDown; CheckBox boldCheckBox = form.boldCheckBox; CheckBox italicCheckBox = form.italicCheckBox; CheckBox underlinedCheckBox = form.underlinedCheckBox; RichTextBox previewTextBox = form.previewTextBox; if (WindowManager.ShowQuestionBox(form, LanguageUtil.GetCurrentLanguageString("ResetQuestion", className)) == DialogResult.No) { return; } fontEdit.SelectedItem = "Courier New"; colorEdit.EditValue = Color.FromArgb(255, 0, 0, 0); sizeNumericUpDown.Value = 10; boldCheckBox.Checked = false; italicCheckBox.Checked = false; underlinedCheckBox.Checked = false; previewTextBox.Font = new Font("Courier New", 10); previewTextBox.ForeColor = (Color)colorEdit.EditValue; }
// 颜色 private void repositoryItemColorEdit1_EditValueChanged(object sender, EventArgs e) { try { ColorEdit edit = sender as ColorEdit; if (edit == null) { return; } DataRow row = gvAreaList.GetFocusedDataRow(); if (row == null) { return; } string name = row["areaName"].ToString(); Color color = edit.Color; wanrMgr.SetAreaColor(name, color); } catch (Exception) { } }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { Color color = (Color)value; string _Color = ColorEdit.SuchColor(color)[0]; return(_Color); }
private void handleAsDraggingColor(ColorEdit colorEdit, CurveDTO curveDTO) { var color = curveDTO.Color; colorEdit?.ClosePopup(); gridControl.DoDragDrop(color, DragDropEffects.Copy); _downHitInfo = null; }
private void method_4(ColorEdit colorEdit_0, IColor icolor_0) { icolor_0.NullColor = colorEdit_0.Color.IsEmpty; if (!colorEdit_0.Color.IsEmpty) { icolor_0.Transparency = colorEdit_0.Color.A; icolor_0.RGB = this.method_3(colorEdit_0.Color.R, colorEdit_0.Color.G, colorEdit_0.Color.B); } }
/// <summary> /// 背景色1事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void repositoryItemColorEdit3_ColorChanged(object sender, EventArgs e) { ColorEdit c = sender as ColorEdit; this.S_SL.ForeColor = c.Color; _SpecialStyleInfo info = this.bindingSource3.Current as _SpecialStyleInfo; info.ForeColor = c.Color; }
private void SelectedGridcontrol(object obj) { ColorEditConverter colorEditConverter = null; GridControl gridControl2 = null; if (obj is ColorEditConverter editConverter) { colorEditConverter = editConverter; } if (colorEditConverter != null && colorEditConverter.ObjectData is GridControl gridControl1) { gridControl2 = gridControl1; } if (gridControl2 is GridControl gridControl) { int[] rowhandle = gridControl.GetSelectedRowHandles(); DataRowView itemarray = (DataRowView)gridControl.GetRow(rowhandle[0]); string Score_id = itemarray.Row.Field <string>("Score_id"); List <string> data = new List <string>(); _score_id = Score_id; if (Score_id == "1") { data.Add("스코어1"); data.Add("스코어2"); data.Add("스코어3"); ColorEdit colorEdit = (ColorEdit)colorEditConverter.StringData; colorEdit.Visibility = Visibility.Hidden; } if (Score_id == "2") { ColorEdit colorEdit = (ColorEdit)colorEditConverter.StringData; colorEdit.Visibility = Visibility.Hidden; data.Add("테스트1"); data.Add("테스트2"); data.Add("테스트3"); } if (Score_id == "3") { ColorEdit colorEdit = (ColorEdit)colorEditConverter.StringData; colorEdit.Visibility = Visibility.Visible; colorEdit.ColorChanged += ColorEdit_ColorChanged; } _comboboxcontent = data; OnPropertyChanged("ComboboxContent"); } }
/// <summary> /// 背景色1事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void repositoryItemColorEdit2_ColorChanged(object sender, EventArgs e) { ColorEdit c = sender as ColorEdit; this.S_SL.Appearance.BackColor2 = c.Color; _SpecialStyleInfo info = this.bindingSource3.Current as _SpecialStyleInfo; info.BColor2 = c.Color; }
private void method_2(ColorEdit colorEdit_0, IColor icolor_0) { icolor_0.NullColor = colorEdit_0.Color.IsEmpty; if (!colorEdit_0.Color.IsEmpty) { icolor_0.Transparency = colorEdit_0.Color.A; icolor_0.RGB = ColorManage.EsriRGB(colorEdit_0.Color.R, colorEdit_0.Color.G, colorEdit_0.Color.B); } }
private void InitLogistics() { var tree = new TreeNode("Logistics") { //DefaultOpened = true, FrameType = IToolTreeNode.TreeNodeFrameType.Framed }; Group.AddComponent(tree); var line = graph.AddData(CalcLogistics(DataBase.Data.Count, 0.3f, DataBase.Data.Count > 0 ? DataBase.Data.First.Value : 0, (int)graph.MaxY)); line.Color = new Color(255, 255, 255, 0); var colorEdit = new ColorEdit("Color", new Color(255, 255, 255)) { EditAlpha = false }; colorEdit.ColorChanged += (x, y) => { var c = y.NewValue; c.A = line.Color.A; line.Color = c; }; tree.AddComponent(colorEdit); var inputFloat_R = new InputFloat1("r", 0.3f) { Max = 1.0f, Min = 0.0f }; inputFloat_R.ValueChanged += (x, y) => updateLogisticsLine?.Invoke(false); tree.AddComponent(inputFloat_R); var inputInt_K = new InputInt1("K", (int)graph.MaxY) { Min = 1 }; inputInt_K.ValueChanged += (x, y) => updateLogisticsLine?.Invoke(false); tree.AddComponent(inputInt_K); var checkBox = new CheckBox("Shown", false); checkBox.ChangeChecked += (x, y) => { var color = line.Color; color.A = y.NewValue ? (byte)255 : default; line.Color = color; }; tree.AddComponent(checkBox); updateLogisticsLine = (x) => { if (x) { inputInt_K.Value = (int)graph.MaxY; } line.Data = CalcLogistics(DataBase.Data.Count, inputFloat_R.Value, DataBase.Data.Count > 0 ? DataBase.Data.First.Value : 0, inputInt_K.Value); }; }
private void UpdateColorFromColorEdit(ColorEdit colorEdit, IColor pColor) { pColor.NullColor = colorEdit.Color.IsEmpty; if (!colorEdit.Color.IsEmpty) { pColor.Transparency = colorEdit.Color.A; pColor.RGB = this.RGB(colorEdit.Color.R, colorEdit.Color.G, colorEdit.Color.B); } }
private void colorEdit1_EditValueChanged(object sender, EventArgs e) { ColorEdit editor = (ColorEdit)sender; object value = editor.EditValue; if (ColorHelper.TryConvertToKnownColor(ref value)) { editor.EditValue = value; } }
private void Tool_MA_Button_Do(object sender, EventArgs e) { var count = tool_MA_Count.Value; if (movingAves.ContainsKey(count) || DataBase.Data.Count <= 0) { return; } var array = new Vector2F[DataBase.Data.Count - count]; var rawData = this.rawData.Data; var current = 0f; for (int i = 0; i < count; i++) { current += rawData[i].Y; } for (int i = count; i < rawData.Length; i++) { array[i - count] = new Vector2F(i, current / count); current += rawData[i].Y - rawData[i - count].Y; } var graphLine = graph.AddData(array); var color = tool_MA_LineColor.Color; graphLine.Color = color; movingAves.Add(count, graphLine); var button = new CheckBox(count.ToString(), true); button.ChangeChecked += (x, y) => { var c = graphLine.Color; c.A = y.NewValue ? byte.MaxValue : default; graphLine.Color = c; }; var lineComponent = new Line(); lineComponent.AddComponent(button); var colorEdit = new ColorEdit(count.ToString(), color) { EditAlpha = false, InputType = IToolColorEdit.ColorEditInputType.None, ShowLabel = false }; colorEdit.ColorChanged += (x, y) => { var c = y.NewValue; c.A = graphLine.Color.A; graphLine.Color = c; }; lineComponent.AddComponent(colorEdit); graphButtonGroup.AddComponent(lineComponent); }
private void method_3(ColorEdit colorEdit_0, IColor icolor_0) { if (icolor_0.NullColor) { colorEdit_0.Color = Color.Empty; } else { int num2; int num3; int num4; ColorManage.GetEsriRGB((uint)icolor_0.RGB, out num2, out num3, out num4); colorEdit_0.Color = Color.FromArgb(icolor_0.Transparency, num2, num3, num4); } }
private void SetColorEdit(ColorEdit colorEdit, IColor pColor) { if (pColor.NullColor) { colorEdit.Color = Color.Empty; } else { int num; int num2; int num3; GetEsriRGB((uint) pColor.RGB, out num, out num2, out num3); colorEdit.Color = Color.FromArgb(pColor.Transparency, num, num2, num3); } }
private void method_1(ColorEdit colorEdit_0, IColor icolor_0) { if (icolor_0.NullColor) { colorEdit_0.Color = Color.Empty; } else { int num2; int num3; int num4; uint rGB = (uint)icolor_0.RGB; this.method_2(rGB, out num2, out num3, out num4); colorEdit_0.Color = Color.FromArgb(icolor_0.Transparency, num2, num3, num4); } }
internal static Font GetFontFromSelection(FontSelect form) { FontEdit fontEdit = form.fontEdit; ColorEdit colorEdit = form.colorEdit; NumericUpDown sizeNumericUpDown = form.sizeNumericUpDown; CheckBox boldCheckBox = form.boldCheckBox; CheckBox italicCheckBox = form.italicCheckBox; CheckBox underlinedCheckBox = form.underlinedCheckBox; RichTextBox previewTextBox = form.previewTextBox; Font font = SetFontWithStyle(fontEdit.EditValue.ToString(), (float)sizeNumericUpDown.Value, boldCheckBox.Checked, italicCheckBox.Checked, underlinedCheckBox.Checked); previewTextBox.Font = font; previewTextBox.ForeColor = (Color)colorEdit.EditValue; return(font); }
/// <summary> /// Handles the EditValueChanged event of the cmbColor control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void cmbColor_EditValueChanged(object sender, EventArgs e) { if (this._styleGalleryItem != null) { ColorEdit colorEdit = sender as ColorEdit; IColor color = SymbleAPI.ConvertColorToIColor(colorEdit.Color); switch (this.axSymbologyControl1.StyleClass) { case esriSymbologyStyleClass.esriStyleClassFillSymbols: { IFillSymbol fillSymbol = this._styleGalleryItem.Item as IFillSymbol; fillSymbol.Color = color; break; } case esriSymbologyStyleClass.esriStyleClassLineSymbols: { ILineSymbol lineSymbol = this._styleGalleryItem.Item as ILineSymbol; lineSymbol.Color = color; break; } case esriSymbologyStyleClass.esriStyleClassMarkerSymbols: { IMarkerSymbol markerSymbol = this._styleGalleryItem.Item as IMarkerSymbol; markerSymbol.Color = color; break; } case esriSymbologyStyleClass.esriStyleClassTextSymbols: { ITextSymbol textSymbol = this._styleGalleryItem.Item as ITextSymbol; textSymbol.Color = color; break; } } this.ViewSymble(); } }
private void InitializeComponent() { this.fontLabel = new System.Windows.Forms.Label(); this.upDownSize = new System.Windows.Forms.NumericUpDown(); this.label1 = new System.Windows.Forms.Label(); this.colorEdit = new DevExpress.XtraEditors.ColorEdit(); this.label2 = new System.Windows.Forms.Label(); this.styleListBox = new System.Windows.Forms.ListBox(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.underlineCheck = new System.Windows.Forms.CheckBox(); this.shadowCheck = new System.Windows.Forms.CheckBox(); this.fontDropDown = new DevExpress.XtraEditors.FontEdit(); this.spacingUpDown = new System.Windows.Forms.NumericUpDown(); this.label5 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.upDownSize)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.colorEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fontDropDown.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spacingUpDown)).BeginInit(); this.SuspendLayout(); // // _okButton // this._okButton.Location = new System.Drawing.Point(215, 203); this._okButton.TabIndex = 7; // // _cancelButton // this._cancelButton.Location = new System.Drawing.Point(296, 203); this._cancelButton.TabIndex = 8; // // fontLabel // this.fontLabel.BackColor = System.Drawing.Color.LightGray; this.fontLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.fontLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 32F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.fontLabel.Location = new System.Drawing.Point(10, 106); this.fontLabel.Name = "fontLabel"; this.fontLabel.Size = new System.Drawing.Size(361, 90); this.fontLabel.TabIndex = 3; this.fontLabel.Text = "AaBbCc"; this.fontLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // upDownSize // this.upDownSize.Increment = new decimal(new int[] { 4, 0, 0, 0 }); this.upDownSize.Location = new System.Drawing.Point(247, 25); this.upDownSize.Minimum = new decimal(new int[] { 4, 0, 0, 0 }); this.upDownSize.Name = "upDownSize"; this.upDownSize.Size = new System.Drawing.Size(52, 20); this.upDownSize.TabIndex = 4; this.upDownSize.Value = new decimal(new int[] { 32, 0, 0, 0 }); this.upDownSize.ValueChanged += new System.EventHandler(this.upDownSize_ValueChanged); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(244, 9); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(51, 13); this.label1.TabIndex = 6; this.label1.Text = "Font Size"; // // colorEdit // this.colorEdit.EditValue = System.Drawing.Color.Black; this.colorEdit.Location = new System.Drawing.Point(247, 74); this.colorEdit.Name = "colorEdit"; this.colorEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.colorEdit.Properties.ShowCustomColors = false; this.colorEdit.Properties.ShowSystemColors = false; this.colorEdit.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; this.colorEdit.Size = new System.Drawing.Size(124, 20); this.colorEdit.TabIndex = 6; this.colorEdit.EditValueChanged += new System.EventHandler(this.colorEdit_EditValueChanged); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(244, 58); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(55, 13); this.label2.TabIndex = 8; this.label2.Text = "Font Color"; // // styleListBox // this.styleListBox.FormattingEnabled = true; this.styleListBox.Location = new System.Drawing.Point(159, 25); this.styleListBox.Name = "styleListBox"; this.styleListBox.Size = new System.Drawing.Size(82, 69); this.styleListBox.TabIndex = 3; this.styleListBox.SelectedIndexChanged += new System.EventHandler(this.styleListBox_SelectedIndexChanged); // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(156, 9); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(54, 13); this.label3.TabIndex = 10; this.label3.Text = "Font Style"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(7, 9); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(28, 13); this.label4.TabIndex = 11; this.label4.Text = "Font"; // // underlineCheck // this.underlineCheck.AutoSize = true; this.underlineCheck.Location = new System.Drawing.Point(12, 54); this.underlineCheck.Name = "underlineCheck"; this.underlineCheck.Size = new System.Drawing.Size(71, 17); this.underlineCheck.TabIndex = 1; this.underlineCheck.Text = "Underline"; this.underlineCheck.UseVisualStyleBackColor = true; this.underlineCheck.CheckedChanged += new System.EventHandler(this.underlineCheck_CheckedChanged); // // shadowCheck // this.shadowCheck.AutoSize = true; this.shadowCheck.Location = new System.Drawing.Point(12, 77); this.shadowCheck.Name = "shadowCheck"; this.shadowCheck.Size = new System.Drawing.Size(65, 17); this.shadowCheck.TabIndex = 2; this.shadowCheck.Text = "Shadow"; this.shadowCheck.UseVisualStyleBackColor = true; this.shadowCheck.CheckedChanged += new System.EventHandler(this.underlineCheck_CheckedChanged); // // fontDropDown // this.fontDropDown.Location = new System.Drawing.Point(10, 25); this.fontDropDown.Name = "fontDropDown"; this.fontDropDown.Properties.AppearanceDropDown.Font = new System.Drawing.Font("Tahoma", 10F); this.fontDropDown.Properties.AppearanceDropDown.Options.UseFont = true; this.fontDropDown.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.fontDropDown.Properties.DropDownRows = 12; this.fontDropDown.Properties.PopupSizeable = true; this.fontDropDown.Properties.RecentlyUsedItemCount = 0; this.fontDropDown.Properties.ShowOnlyRegularStyleFonts = false; this.fontDropDown.Properties.Sorted = true; this.fontDropDown.Size = new System.Drawing.Size(134, 20); this.fontDropDown.TabIndex = 0; this.fontDropDown.SelectedIndexChanged += new System.EventHandler(this.fontDropDown_SelectedIndexChanged); // // spacingUpDown // this.spacingUpDown.DecimalPlaces = 1; this.spacingUpDown.Increment = new decimal(new int[] { 5, 0, 0, 65536 }); this.spacingUpDown.Location = new System.Drawing.Point(319, 25); this.spacingUpDown.Maximum = new decimal(new int[] { 3, 0, 0, 0 }); this.spacingUpDown.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.spacingUpDown.Name = "spacingUpDown"; this.spacingUpDown.Size = new System.Drawing.Size(52, 20); this.spacingUpDown.TabIndex = 5; this.spacingUpDown.Value = new decimal(new int[] { 1, 0, 0, 0 }); // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(316, 9); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(69, 13); this.label5.TabIndex = 16; this.label5.Text = "Line Spacing"; // // FontSelectDialog // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(387, 234); this.Controls.Add(this.label5); this.Controls.Add(this.spacingUpDown); this.Controls.Add(this.fontDropDown); this.Controls.Add(this.shadowCheck); this.Controls.Add(this.underlineCheck); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.styleListBox); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.colorEdit); this.Controls.Add(this.fontLabel); this.Controls.Add(this.upDownSize); this.Name = "FontSelectDialog"; this.Text = "Select Font"; this.Controls.SetChildIndex(this.upDownSize, 0); this.Controls.SetChildIndex(this.fontLabel, 0); this.Controls.SetChildIndex(this.colorEdit, 0); this.Controls.SetChildIndex(this.label1, 0); this.Controls.SetChildIndex(this._okButton, 0); this.Controls.SetChildIndex(this._cancelButton, 0); this.Controls.SetChildIndex(this.label2, 0); this.Controls.SetChildIndex(this.styleListBox, 0); this.Controls.SetChildIndex(this.label3, 0); this.Controls.SetChildIndex(this.label4, 0); this.Controls.SetChildIndex(this.underlineCheck, 0); this.Controls.SetChildIndex(this.shadowCheck, 0); this.Controls.SetChildIndex(this.fontDropDown, 0); this.Controls.SetChildIndex(this.spacingUpDown, 0); this.Controls.SetChildIndex(this.label5, 0); ((System.ComponentModel.ISupportInitialize)(this.upDownSize)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.colorEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fontDropDown.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spacingUpDown)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.checkEditEnableColor = new DevExpress.XtraEditors.CheckEdit(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.chkTexture = new DevExpress.XtraEditors.CheckEdit(); this.spinEditAlpha = new DevExpress.XtraEditors.SpinEdit(); this.colorEdit = new DevExpress.XtraEditors.ColorEdit(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEditEnableColor.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.chkTexture.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditAlpha.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.colorEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); this.SuspendLayout(); // // layoutControlItem3 // this.layoutControlItem3.Control = this.checkEditEnableColor; this.layoutControlItem3.CustomizationFormText = "启用颜色"; this.layoutControlItem3.Location = new System.Drawing.Point(0, 23); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(132, 26); this.layoutControlItem3.Text = "启用颜色"; this.layoutControlItem3.TextSize = new System.Drawing.Size(48, 14); // // checkEditEnableColor // this.checkEditEnableColor.Location = new System.Drawing.Point(63, 35); this.checkEditEnableColor.Name = "checkEditEnableColor"; this.checkEditEnableColor.Properties.Caption = ""; this.checkEditEnableColor.Size = new System.Drawing.Size(77, 19); this.checkEditEnableColor.StyleController = this.layoutControl1; this.checkEditEnableColor.TabIndex = 1; this.checkEditEnableColor.CheckedChanged += new System.EventHandler(this.checkEditEnableColor_CheckedChanged); // // layoutControl1 // this.layoutControl1.Controls.Add(this.chkTexture); this.layoutControl1.Controls.Add(this.checkEditEnableColor); this.layoutControl1.Controls.Add(this.spinEditAlpha); this.layoutControl1.Controls.Add(this.colorEdit); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(313, 97); this.layoutControl1.TabIndex = 1; this.layoutControl1.Text = "layoutControl1"; // // chkTexture // this.chkTexture.EditValue = true; this.chkTexture.Location = new System.Drawing.Point(63, 12); this.chkTexture.Name = "chkTexture"; this.chkTexture.Properties.Caption = ""; this.chkTexture.Size = new System.Drawing.Size(238, 19); this.chkTexture.StyleController = this.layoutControl1; this.chkTexture.TabIndex = 0; // // spinEditAlpha // this.spinEditAlpha.EditValue = new decimal(new int[] { 100, 0, 0, 0 }); this.spinEditAlpha.Location = new System.Drawing.Point(63, 61); this.spinEditAlpha.Name = "spinEditAlpha"; this.spinEditAlpha.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditAlpha.Properties.MaxValue = new decimal(new int[] { 100, 0, 0, 0 }); this.spinEditAlpha.Size = new System.Drawing.Size(238, 22); this.spinEditAlpha.StyleController = this.layoutControl1; this.spinEditAlpha.TabIndex = 3; // // colorEdit // this.colorEdit.EditValue = System.Drawing.Color.Empty; this.colorEdit.Location = new System.Drawing.Point(195, 35); this.colorEdit.Name = "colorEdit"; this.colorEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.colorEdit.Properties.StoreColorAsInteger = true; this.colorEdit.Size = new System.Drawing.Size(106, 22); this.colorEdit.StyleController = this.layoutControl1; this.colorEdit.TabIndex = 2; // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem3, this.layoutControlItem4 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(313, 97); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.colorEdit; this.layoutControlItem1.CustomizationFormText = "颜色"; this.layoutControlItem1.Location = new System.Drawing.Point(132, 23); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(161, 26); this.layoutControlItem1.Text = "颜色"; this.layoutControlItem1.TextSize = new System.Drawing.Size(48, 14); // // layoutControlItem2 // this.layoutControlItem2.Control = this.spinEditAlpha; this.layoutControlItem2.CustomizationFormText = "不透明度"; this.layoutControlItem2.Location = new System.Drawing.Point(0, 49); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(293, 28); this.layoutControlItem2.Text = "不透明度"; this.layoutControlItem2.TextSize = new System.Drawing.Size(48, 14); // // layoutControlItem4 // this.layoutControlItem4.Control = this.chkTexture; this.layoutControlItem4.CustomizationFormText = "启用纹理"; this.layoutControlItem4.Location = new System.Drawing.Point(0, 0); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(293, 23); this.layoutControlItem4.Text = "启用纹理"; this.layoutControlItem4.TextSize = new System.Drawing.Size(48, 14); // // UCModelPointSymbol // this.Controls.Add(this.layoutControl1); this.Name = "UCModelPointSymbol"; this.Size = new System.Drawing.Size(313, 97); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEditEnableColor.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.chkTexture.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditAlpha.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.colorEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.spinEditAlpha = new DevExpress.XtraEditors.SpinEdit(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.spinEditRepeat = new DevExpress.XtraEditors.SpinEdit(); this.buttonEditTexture = new DevExpress.XtraEditors.ButtonEdit(); this.spinEditLineWidth = new DevExpress.XtraEditors.SpinEdit(); this.colorEdit = new DevExpress.XtraEditors.ColorEdit(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditAlpha.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.spinEditRepeat.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonEditTexture.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditLineWidth.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.colorEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); this.SuspendLayout(); // // layoutControlItem2 // this.layoutControlItem2.Control = this.spinEditAlpha; this.layoutControlItem2.CustomizationFormText = "不透明度"; this.layoutControlItem2.Location = new System.Drawing.Point(0, 26); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(266, 26); this.layoutControlItem2.Text = "不透明度"; this.layoutControlItem2.TextSize = new System.Drawing.Size(48, 14); // // spinEditAlpha // this.spinEditAlpha.EditValue = new decimal(new int[] { 100, 0, 0, 0 }); this.spinEditAlpha.Location = new System.Drawing.Point(63, 38); this.spinEditAlpha.Name = "spinEditAlpha"; this.spinEditAlpha.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditAlpha.Properties.MaxValue = new decimal(new int[] { 100, 0, 0, 0 }); this.spinEditAlpha.Size = new System.Drawing.Size(211, 22); this.spinEditAlpha.StyleController = this.layoutControl1; this.spinEditAlpha.TabIndex = 1; // // layoutControl1 // this.layoutControl1.Controls.Add(this.spinEditRepeat); this.layoutControl1.Controls.Add(this.buttonEditTexture); this.layoutControl1.Controls.Add(this.spinEditLineWidth); this.layoutControl1.Controls.Add(this.spinEditAlpha); this.layoutControl1.Controls.Add(this.colorEdit); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(286, 150); this.layoutControl1.TabIndex = 2; this.layoutControl1.Text = "layoutControl1"; // // spinEditRepeat // this.spinEditRepeat.EditValue = new decimal(new int[] { 1, 0, 0, 0 }); this.spinEditRepeat.Location = new System.Drawing.Point(63, 116); this.spinEditRepeat.Name = "spinEditRepeat"; this.spinEditRepeat.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.spinEditRepeat.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.spinEditRepeat.Properties.IsFloatValue = false; this.spinEditRepeat.Properties.Mask.EditMask = "N00"; this.spinEditRepeat.Properties.MaxValue = new decimal(new int[] { 1, 0, 0, 0 }); this.spinEditRepeat.Properties.MinValue = new decimal(new int[] { 1, 0, 0, 0 }); this.spinEditRepeat.Size = new System.Drawing.Size(211, 22); this.spinEditRepeat.StyleController = this.layoutControl1; this.spinEditRepeat.TabIndex = 4; // // buttonEditTexture // this.buttonEditTexture.Location = new System.Drawing.Point(63, 90); this.buttonEditTexture.Name = "buttonEditTexture"; this.buttonEditTexture.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.buttonEditTexture.Size = new System.Drawing.Size(211, 22); this.buttonEditTexture.StyleController = this.layoutControl1; this.buttonEditTexture.TabIndex = 3; // // spinEditLineWidth // this.spinEditLineWidth.EditValue = new decimal(new int[] { 0, 0, 0, 0 }); this.spinEditLineWidth.Location = new System.Drawing.Point(63, 64); this.spinEditLineWidth.Name = "spinEditLineWidth"; this.spinEditLineWidth.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.spinEditLineWidth.Size = new System.Drawing.Size(211, 22); this.spinEditLineWidth.StyleController = this.layoutControl1; this.spinEditLineWidth.TabIndex = 2; // // colorEdit // this.colorEdit.EditValue = System.Drawing.Color.Lime; this.colorEdit.Location = new System.Drawing.Point(63, 12); this.colorEdit.Name = "colorEdit"; this.colorEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.colorEdit.Properties.ColorAlignment = DevExpress.Utils.HorzAlignment.Center; this.colorEdit.Size = new System.Drawing.Size(211, 22); this.colorEdit.StyleController = this.layoutControl1; this.colorEdit.TabIndex = 0; // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem3, this.layoutControlItem4, this.layoutControlItem5 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(286, 150); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.colorEdit; this.layoutControlItem1.CustomizationFormText = "颜色"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(266, 26); this.layoutControlItem1.Text = "颜色"; this.layoutControlItem1.TextSize = new System.Drawing.Size(48, 14); // // layoutControlItem3 // this.layoutControlItem3.Control = this.spinEditLineWidth; this.layoutControlItem3.CustomizationFormText = "线宽"; this.layoutControlItem3.Location = new System.Drawing.Point(0, 52); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(266, 26); this.layoutControlItem3.Text = "线宽"; this.layoutControlItem3.TextSize = new System.Drawing.Size(48, 14); // // layoutControlItem4 // this.layoutControlItem4.Control = this.buttonEditTexture; this.layoutControlItem4.CustomizationFormText = "纹理"; this.layoutControlItem4.Location = new System.Drawing.Point(0, 78); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(266, 26); this.layoutControlItem4.Text = "纹理"; this.layoutControlItem4.TextSize = new System.Drawing.Size(48, 14); // // layoutControlItem5 // this.layoutControlItem5.Control = this.spinEditRepeat; this.layoutControlItem5.CustomizationFormText = "重复度"; this.layoutControlItem5.Location = new System.Drawing.Point(0, 104); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.Size = new System.Drawing.Size(266, 26); this.layoutControlItem5.Text = "重复度"; this.layoutControlItem5.TextSize = new System.Drawing.Size(48, 14); // // UCPolylineSymbol // this.Controls.Add(this.layoutControl1); this.Name = "UCPolylineSymbol"; this.Size = new System.Drawing.Size(286, 150); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditAlpha.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.spinEditRepeat.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonEditTexture.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditLineWidth.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.colorEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); this.ResumeLayout(false); }
public NullableColorEditElementBinder(IPropertyBinderNotifier <TypeToBindTo, Color?> propertyBinder, ColorEdit colorEdit) : base(propertyBinder) { _colorEdit = colorEdit; _colorEdit.ColorChanged += (o, e) => ValueInControlChanged(); }
private void InitializeComponent() { this.txtColorName = new DevExpress.XtraEditors.TextEdit(); this.labelControl3 = new DevExpress.XtraEditors.LabelControl(); this.btnCancel = new DevExpress.XtraEditors.SimpleButton(); this.btnSave = new DevExpress.XtraEditors.SimpleButton(); this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); this.traktTansparency = new DevExpress.XtraEditors.TrackBarControl(); this.labelControl4 = new DevExpress.XtraEditors.LabelControl(); this.labelControl2 = new DevExpress.XtraEditors.LabelControl(); this.colorValue = new DevExpress.XtraEditors.ColorEdit(); this.cbxColorType = new DevExpress.XtraEditors.ComboBoxEdit(); this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); ((System.ComponentModel.ISupportInitialize)(this.txtColorName.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit(); this.panelControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.traktTansparency)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.traktTansparency.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.colorValue.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbxColorType.Properties)).BeginInit(); this.SuspendLayout(); // // txtColorName // this.txtColorName.Location = new System.Drawing.Point(87, 18); this.txtColorName.Name = "txtColorName"; this.txtColorName.Size = new System.Drawing.Size(217, 22); this.txtColorName.TabIndex = 12; // // labelControl3 // this.labelControl3.Location = new System.Drawing.Point(21, 21); this.labelControl3.Name = "labelControl3"; this.labelControl3.Size = new System.Drawing.Size(52, 14); this.labelControl3.TabIndex = 11; this.labelControl3.Text = "颜色名称:"; // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(178, 210); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(75, 23); this.btnCancel.TabIndex = 10; this.btnCancel.Text = "取消"; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // btnSave // this.btnSave.Location = new System.Drawing.Point(79, 210); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(75, 23); this.btnSave.TabIndex = 7; this.btnSave.Text = "保存"; this.btnSave.Click += new System.EventHandler(this.btnSave_Click); // // panelControl1 // this.panelControl1.Controls.Add(this.traktTansparency); this.panelControl1.Controls.Add(this.labelControl4); this.panelControl1.Controls.Add(this.labelControl2); this.panelControl1.Controls.Add(this.colorValue); this.panelControl1.Location = new System.Drawing.Point(20, 87); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new System.Drawing.Size(299, 111); this.panelControl1.TabIndex = 9; // // traktTansparency // this.traktTansparency.EditValue = 255; this.traktTansparency.Location = new System.Drawing.Point(83, 58); this.traktTansparency.Name = "traktTansparency"; this.traktTansparency.Properties.Maximum = 255; this.traktTansparency.Properties.ShowValueToolTip = true; this.traktTansparency.Properties.TickFrequency = 10; this.traktTansparency.Size = new System.Drawing.Size(201, 45); this.traktTansparency.TabIndex = 13; this.traktTansparency.Value = 255; this.traktTansparency.EditValueChanged += new System.EventHandler(this.colorAlpha_EditValueChanged); // // labelControl4 // this.labelControl4.Location = new System.Drawing.Point(13, 67); this.labelControl4.Name = "labelControl4"; this.labelControl4.Size = new System.Drawing.Size(40, 14); this.labelControl4.TabIndex = 5; this.labelControl4.Text = "透明度:"; // // labelControl2 // this.labelControl2.Location = new System.Drawing.Point(13, 25); this.labelControl2.Name = "labelControl2"; this.labelControl2.Size = new System.Drawing.Size(40, 14); this.labelControl2.TabIndex = 5; this.labelControl2.Text = "颜色值:"; // // colorValue // this.colorValue.EditValue = System.Drawing.Color.Red; this.colorValue.Location = new System.Drawing.Point(83, 22); this.colorValue.Name = "colorValue"; this.colorValue.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.colorValue.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; this.colorValue.Size = new System.Drawing.Size(201, 22); this.colorValue.TabIndex = 4; this.colorValue.EditValueChanged += new System.EventHandler(this.ColorValueCE_EditValueChanged); // // cbxColorType // this.cbxColorType.EditValue = "ARGB"; this.cbxColorType.Location = new System.Drawing.Point(87, 48); this.cbxColorType.Name = "cbxColorType"; this.cbxColorType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.cbxColorType.Properties.Items.AddRange(new object[] { "ARGB" }); this.cbxColorType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.cbxColorType.Size = new System.Drawing.Size(217, 22); this.cbxColorType.TabIndex = 8; // // labelControl1 // this.labelControl1.Location = new System.Drawing.Point(21, 51); this.labelControl1.Name = "labelControl1"; this.labelControl1.Size = new System.Drawing.Size(52, 14); this.labelControl1.TabIndex = 6; this.labelControl1.Text = "颜色类型:"; // // FrmEditColor // this.AcceptButton = this.btnSave; this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(342, 245); this.Controls.Add(this.txtColorName); this.Controls.Add(this.labelControl3); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnSave); this.Controls.Add(this.panelControl1); this.Controls.Add(this.cbxColorType); this.Controls.Add(this.labelControl1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.Name = "FrmEditColor"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "添加颜色"; ((System.ComponentModel.ISupportInitialize)(this.txtColorName.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit(); this.panelControl1.ResumeLayout(false); this.panelControl1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.traktTansparency.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.traktTansparency)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.colorValue.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbxColorType.Properties)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject(); this.ToolStripMenuItemDelete = new System.Windows.Forms.ToolStripMenuItem(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(); this.ToolStripMenuItemEdit = new System.Windows.Forms.ToolStripMenuItem(); this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); this.gridControl1 = new DevExpress.XtraGrid.GridControl(); this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); this.symbleCol = new DevExpress.XtraGrid.Columns.GridColumn(); this.repositoryItemColorEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemColorEdit(); this.minValueCol = new DevExpress.XtraGrid.Columns.GridColumn(); this.repositoryItemSpinEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemSpinEdit(); this.maxValueCol = new DevExpress.XtraGrid.Columns.GridColumn(); this.typeValueCol = new DevExpress.XtraGrid.Columns.GridColumn(); this.repositoryItemComboBox1 = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.checkEditDefault = new DevExpress.XtraEditors.CheckEdit(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.colorEditDefault = new DevExpress.XtraEditors.ColorEdit(); this.spinEditRang = new DevExpress.XtraEditors.SpinEdit(); this.cmbField = new DevExpress.XtraEditors.ComboBoxEdit(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.contextMenuStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemColorEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSpinEdit1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemComboBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEditDefault.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.colorEditDefault.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditRang.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cmbField.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); this.SuspendLayout(); // // ToolStripMenuItemDelete // this.ToolStripMenuItemDelete.Name = "ToolStripMenuItemDelete"; this.ToolStripMenuItemDelete.Size = new System.Drawing.Size(181, 22); this.ToolStripMenuItemDelete.Text = "${res:View_Delete}"; // // contextMenuStrip1 // this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.ToolStripMenuItemEdit, this.ToolStripMenuItemDelete }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new System.Drawing.Size(182, 48); // // ToolStripMenuItemEdit // this.ToolStripMenuItemEdit.Name = "ToolStripMenuItemEdit"; this.ToolStripMenuItemEdit.Size = new System.Drawing.Size(181, 22); this.ToolStripMenuItemEdit.Text = "${res:View_Delete}"; // // layoutControlItem5 // this.layoutControlItem5.Control = this.gridControl1; this.layoutControlItem5.CustomizationFormText = "layoutControlItem5"; this.layoutControlItem5.Location = new System.Drawing.Point(0, 78); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.Size = new System.Drawing.Size(266, 320); this.layoutControlItem5.Text = "layoutControlItem5"; this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem5.TextToControlDistance = 0; this.layoutControlItem5.TextVisible = false; // // gridControl1 // this.gridControl1.Location = new System.Drawing.Point(12, 90); this.gridControl1.MainView = this.gridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { this.repositoryItemColorEdit1, this.repositoryItemSpinEdit1, this.repositoryItemComboBox1 }); this.gridControl1.Size = new System.Drawing.Size(262, 316); this.gridControl1.TabIndex = 4; this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1 }); // // gridView1 // this.gridView1.Appearance.FocusedCell.BackColor = System.Drawing.Color.CornflowerBlue; this.gridView1.Appearance.FocusedCell.Options.UseBackColor = true; this.gridView1.Appearance.FocusedRow.BackColor = System.Drawing.Color.CornflowerBlue; this.gridView1.Appearance.FocusedRow.Options.UseBackColor = true; this.gridView1.Appearance.SelectedRow.BackColor = System.Drawing.Color.CornflowerBlue; this.gridView1.Appearance.SelectedRow.Options.UseBackColor = true; this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.symbleCol, this.minValueCol, this.maxValueCol, this.typeValueCol }); this.gridView1.GridControl = this.gridControl1; this.gridView1.Name = "gridView1"; this.gridView1.OptionsCustomization.AllowColumnMoving = false; this.gridView1.OptionsCustomization.AllowFilter = false; this.gridView1.OptionsCustomization.AllowGroup = false; this.gridView1.OptionsCustomization.AllowQuickHideColumns = false; this.gridView1.OptionsFilter.AllowColumnMRUFilterList = false; this.gridView1.OptionsFilter.AllowFilterEditor = false; this.gridView1.OptionsFilter.AllowMRUFilterList = false; this.gridView1.OptionsMenu.EnableColumnMenu = false; this.gridView1.OptionsMenu.EnableFooterMenu = false; this.gridView1.OptionsMenu.EnableGroupPanelMenu = false; this.gridView1.OptionsMenu.ShowAutoFilterRowItem = false; this.gridView1.OptionsSelection.EnableAppearanceFocusedCell = false; this.gridView1.OptionsSelection.EnableAppearanceHideSelection = false; this.gridView1.OptionsSelection.MultiSelect = true; this.gridView1.OptionsView.ShowFilterPanelMode = DevExpress.XtraGrid.Views.Base.ShowFilterPanelMode.Never; this.gridView1.OptionsView.ShowGroupPanel = false; // // symbleCol // this.symbleCol.Caption = "符号"; this.symbleCol.ColumnEdit = this.repositoryItemColorEdit1; this.symbleCol.FieldName = "ColorCol"; this.symbleCol.Name = "symbleCol"; this.symbleCol.OptionsColumn.AllowEdit = false; this.symbleCol.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False; this.symbleCol.OptionsColumn.AllowIncrementalSearch = false; this.symbleCol.OptionsColumn.AllowMove = false; this.symbleCol.OptionsColumn.AllowShowHide = false; this.symbleCol.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; this.symbleCol.OptionsColumn.ReadOnly = true; this.symbleCol.OptionsColumn.ShowInCustomizationForm = false; this.symbleCol.OptionsColumn.ShowInExpressionEditor = false; this.symbleCol.OptionsFilter.AllowAutoFilter = false; this.symbleCol.OptionsFilter.AllowFilter = false; this.symbleCol.Visible = true; this.symbleCol.VisibleIndex = 0; // // repositoryItemColorEdit1 // this.repositoryItemColorEdit1.AutoHeight = false; this.repositoryItemColorEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph) }); this.repositoryItemColorEdit1.ColorAlignment = DevExpress.Utils.HorzAlignment.Center; this.repositoryItemColorEdit1.Name = "repositoryItemColorEdit1"; this.repositoryItemColorEdit1.ReadOnly = true; // // minValueCol // this.minValueCol.Caption = "下限"; this.minValueCol.ColumnEdit = this.repositoryItemSpinEdit1; this.minValueCol.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.minValueCol.FieldName = "minValueCol"; this.minValueCol.Name = "minValueCol"; this.minValueCol.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False; this.minValueCol.OptionsColumn.AllowIncrementalSearch = false; this.minValueCol.OptionsColumn.AllowMove = false; this.minValueCol.OptionsColumn.AllowShowHide = false; this.minValueCol.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; this.minValueCol.OptionsColumn.ShowInCustomizationForm = false; this.minValueCol.OptionsFilter.AllowAutoFilter = false; this.minValueCol.OptionsFilter.AllowFilter = false; this.minValueCol.Visible = true; this.minValueCol.VisibleIndex = 1; // // repositoryItemSpinEdit1 // this.repositoryItemSpinEdit1.AutoHeight = false; this.repositoryItemSpinEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.repositoryItemSpinEdit1.Name = "repositoryItemSpinEdit1"; // // maxValueCol // this.maxValueCol.Caption = "上限"; this.maxValueCol.ColumnEdit = this.repositoryItemSpinEdit1; this.maxValueCol.FieldName = "maxValueCol"; this.maxValueCol.Name = "maxValueCol"; this.maxValueCol.Visible = true; this.maxValueCol.VisibleIndex = 2; // // typeValueCol // this.typeValueCol.Caption = "区间类型"; this.typeValueCol.ColumnEdit = this.repositoryItemComboBox1; this.typeValueCol.FieldName = "typeValueCol"; this.typeValueCol.Name = "typeValueCol"; this.typeValueCol.Visible = true; this.typeValueCol.VisibleIndex = 3; // // repositoryItemComboBox1 // this.repositoryItemComboBox1.AutoHeight = false; this.repositoryItemComboBox1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.repositoryItemComboBox1.Name = "repositoryItemComboBox1"; this.repositoryItemComboBox1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; // // layoutControlItem4 // this.layoutControlItem4.Control = this.checkEditDefault; this.layoutControlItem4.CustomizationFormText = "layoutControlItem4"; this.layoutControlItem4.Location = new System.Drawing.Point(0, 52); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(73, 26); this.layoutControlItem4.Text = "layoutControlItem4"; this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem4.TextToControlDistance = 0; this.layoutControlItem4.TextVisible = false; // // checkEditDefault // this.checkEditDefault.EditValue = true; this.checkEditDefault.Location = new System.Drawing.Point(12, 64); this.checkEditDefault.Name = "checkEditDefault"; this.checkEditDefault.Properties.Caption = "默认"; this.checkEditDefault.Properties.GlyphAlignment = DevExpress.Utils.HorzAlignment.Default; this.checkEditDefault.Size = new System.Drawing.Size(69, 19); this.checkEditDefault.StyleController = this.layoutControl1; this.checkEditDefault.TabIndex = 2; // // layoutControl1 // this.layoutControl1.Controls.Add(this.gridControl1); this.layoutControl1.Controls.Add(this.colorEditDefault); this.layoutControl1.Controls.Add(this.checkEditDefault); this.layoutControl1.Controls.Add(this.spinEditRang); this.layoutControl1.Controls.Add(this.cmbField); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(286, 418); this.layoutControl1.TabIndex = 2; this.layoutControl1.Text = "layoutControl1"; // // colorEditDefault // this.colorEditDefault.EditValue = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); this.colorEditDefault.Location = new System.Drawing.Point(85, 64); this.colorEditDefault.Name = "colorEditDefault"; this.colorEditDefault.Properties.AllowDropDownWhenReadOnly = DevExpress.Utils.DefaultBoolean.False; this.colorEditDefault.Properties.AllowMouseWheel = false; this.colorEditDefault.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, false, true, false, DevExpress.XtraEditors.ImageLocation.MiddleCenter, null, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, "", null, null, true) }); this.colorEditDefault.Properties.ColorAlignment = DevExpress.Utils.HorzAlignment.Center; this.colorEditDefault.Properties.ShowDropDown = DevExpress.XtraEditors.Controls.ShowDropDown.Never; this.colorEditDefault.Size = new System.Drawing.Size(189, 22); this.colorEditDefault.StyleController = this.layoutControl1; this.colorEditDefault.TabIndex = 3; this.colorEditDefault.Click += new System.EventHandler(this.colorEditDefault_Click); // // spinEditRang // this.spinEditRang.EditValue = new decimal(new int[] { 0, 0, 0, 0 }); this.spinEditRang.Location = new System.Drawing.Point(39, 38); this.spinEditRang.Name = "spinEditRang"; this.spinEditRang.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditRang.Properties.IsFloatValue = false; this.spinEditRang.Properties.Mask.EditMask = "N00"; this.spinEditRang.Properties.MaxValue = new decimal(new int[] { 50, 0, 0, 0 }); this.spinEditRang.Size = new System.Drawing.Size(235, 22); this.spinEditRang.StyleController = this.layoutControl1; this.spinEditRang.TabIndex = 1; // // cmbField // this.cmbField.Location = new System.Drawing.Point(39, 12); this.cmbField.Name = "cmbField"; this.cmbField.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.cmbField.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.cmbField.Size = new System.Drawing.Size(235, 22); this.cmbField.StyleController = this.layoutControl1; this.cmbField.TabIndex = 0; // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem3, this.layoutControlItem4, this.layoutControlItem5 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(286, 418); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.cmbField; this.layoutControlItem1.CustomizationFormText = "字段"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(266, 26); this.layoutControlItem1.Text = "字段"; this.layoutControlItem1.TextSize = new System.Drawing.Size(24, 14); // // layoutControlItem2 // this.layoutControlItem2.Control = this.spinEditRang; this.layoutControlItem2.CustomizationFormText = "段数"; this.layoutControlItem2.Location = new System.Drawing.Point(0, 26); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(266, 26); this.layoutControlItem2.Text = "段数"; this.layoutControlItem2.TextSize = new System.Drawing.Size(24, 14); // // layoutControlItem3 // this.layoutControlItem3.Control = this.colorEditDefault; this.layoutControlItem3.CustomizationFormText = "layoutControlItem3"; this.layoutControlItem3.Location = new System.Drawing.Point(73, 52); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(193, 26); this.layoutControlItem3.Text = "layoutControlItem3"; this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); this.layoutControlItem3.TextToControlDistance = 0; this.layoutControlItem3.TextVisible = false; // // UCRangeLabel // this.Controls.Add(this.layoutControl1); this.Name = "UCRangeLabel"; this.Size = new System.Drawing.Size(286, 418); this.contextMenuStrip1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemColorEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemSpinEdit1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.repositoryItemComboBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEditDefault.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.colorEditDefault.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditRang.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cmbField.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.checkEditDrawLine = new DevExpress.XtraEditors.CheckEdit(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.spinEditVPixelOff = new DevExpress.XtraEditors.SpinEdit(); this.spinEditHPixelOff = new DevExpress.XtraEditors.SpinEdit(); this.cmbAlign = new DevExpress.XtraEditors.ComboBoxEdit(); this.spinEditFontSize = new DevExpress.XtraEditors.SpinEdit(); this.cmbShowMode = new DevExpress.XtraEditors.ComboBoxEdit(); this.BackColorEdit = new DevExpress.XtraEditors.ColorEdit(); this.UnderLineCheckEdit = new DevExpress.XtraEditors.CheckEdit(); this.ItalicCheckEdit = new DevExpress.XtraEditors.CheckEdit(); this.BoldCheckEdit = new DevExpress.XtraEditors.CheckEdit(); this.outLineColorEdit = new DevExpress.XtraEditors.ColorEdit(); this.spinEditOffSet = new DevExpress.XtraEditors.SpinEdit(); this.spinEditPriority = new DevExpress.XtraEditors.SpinEdit(); this.spinEditMinDis = new DevExpress.XtraEditors.SpinEdit(); this.spinEditMaxDis = new DevExpress.XtraEditors.SpinEdit(); this.fontColorEdit = new DevExpress.XtraEditors.ColorEdit(); this.fontEdit = new DevExpress.XtraEditors.FontEdit(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEditDrawLine.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.spinEditVPixelOff.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditHPixelOff.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cmbAlign.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditFontSize.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cmbShowMode.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.BackColorEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.UnderLineCheckEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ItalicCheckEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.BoldCheckEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.outLineColorEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditOffSet.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditPriority.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditMinDis.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditMaxDis.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fontColorEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.fontEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit(); this.SuspendLayout(); // // layoutControlItem4 // this.layoutControlItem4.Control = this.checkEditDrawLine; this.layoutControlItem4.CustomizationFormText = "参考线"; this.layoutControlItem4.Location = new System.Drawing.Point(0, 225); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(264, 23); this.layoutControlItem4.Text = "参考线"; this.layoutControlItem4.TextSize = new System.Drawing.Size(72, 14); // // checkEditDrawLine // this.checkEditDrawLine.Location = new System.Drawing.Point(87, 237); this.checkEditDrawLine.Name = "checkEditDrawLine"; this.checkEditDrawLine.Properties.Caption = ""; this.checkEditDrawLine.Size = new System.Drawing.Size(185, 19); this.checkEditDrawLine.StyleController = this.layoutControl1; this.checkEditDrawLine.TabIndex = 9; // // layoutControl1 // this.layoutControl1.Controls.Add(this.spinEditVPixelOff); this.layoutControl1.Controls.Add(this.spinEditHPixelOff); this.layoutControl1.Controls.Add(this.cmbAlign); this.layoutControl1.Controls.Add(this.spinEditFontSize); this.layoutControl1.Controls.Add(this.cmbShowMode); this.layoutControl1.Controls.Add(this.BackColorEdit); this.layoutControl1.Controls.Add(this.UnderLineCheckEdit); this.layoutControl1.Controls.Add(this.ItalicCheckEdit); this.layoutControl1.Controls.Add(this.BoldCheckEdit); this.layoutControl1.Controls.Add(this.outLineColorEdit); this.layoutControl1.Controls.Add(this.spinEditOffSet); this.layoutControl1.Controls.Add(this.spinEditPriority); this.layoutControl1.Controls.Add(this.spinEditMinDis); this.layoutControl1.Controls.Add(this.spinEditMaxDis); this.layoutControl1.Controls.Add(this.checkEditDrawLine); this.layoutControl1.Controls.Add(this.fontColorEdit); this.layoutControl1.Controls.Add(this.fontEdit); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(284, 453); this.layoutControl1.TabIndex = 3; this.layoutControl1.Text = "layoutControl1"; // // spinEditVPixelOff // this.spinEditVPixelOff.EditValue = new decimal(new int[] { 0, 0, 0, 0 }); this.spinEditVPixelOff.Location = new System.Drawing.Point(87, 338); this.spinEditVPixelOff.Name = "spinEditVPixelOff"; this.spinEditVPixelOff.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.spinEditVPixelOff.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.spinEditVPixelOff.Properties.IsFloatValue = false; this.spinEditVPixelOff.Properties.Mask.EditMask = "N00"; this.spinEditVPixelOff.Size = new System.Drawing.Size(185, 22); this.spinEditVPixelOff.StyleController = this.layoutControl1; this.spinEditVPixelOff.TabIndex = 13; // // spinEditHPixelOff // this.spinEditHPixelOff.EditValue = new decimal(new int[] { 0, 0, 0, 0 }); this.spinEditHPixelOff.Location = new System.Drawing.Point(87, 312); this.spinEditHPixelOff.Name = "spinEditHPixelOff"; this.spinEditHPixelOff.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.spinEditHPixelOff.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.spinEditHPixelOff.Properties.IsFloatValue = false; this.spinEditHPixelOff.Properties.Mask.EditMask = "N00"; this.spinEditHPixelOff.Size = new System.Drawing.Size(185, 22); this.spinEditHPixelOff.StyleController = this.layoutControl1; this.spinEditHPixelOff.TabIndex = 12; // // cmbAlign // this.cmbAlign.EditValue = "中下"; this.cmbAlign.Location = new System.Drawing.Point(87, 260); this.cmbAlign.Name = "cmbAlign"; this.cmbAlign.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.cmbAlign.Properties.Items.AddRange(new object[] { "左下", "中下", "右下", "左中", "正中", "右中", "左上", "中上", "右上" }); this.cmbAlign.Size = new System.Drawing.Size(185, 22); this.cmbAlign.StyleController = this.layoutControl1; this.cmbAlign.TabIndex = 10; // // spinEditFontSize // this.spinEditFontSize.EditValue = new decimal(new int[] { 13, 0, 0, 0 }); this.spinEditFontSize.Location = new System.Drawing.Point(87, 38); this.spinEditFontSize.Name = "spinEditFontSize"; this.spinEditFontSize.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.spinEditFontSize.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.spinEditFontSize.Properties.IsFloatValue = false; this.spinEditFontSize.Properties.Mask.EditMask = "N00"; this.spinEditFontSize.Properties.MaxValue = new decimal(new int[] { 48, 0, 0, 0 }); this.spinEditFontSize.Size = new System.Drawing.Size(185, 22); this.spinEditFontSize.StyleController = this.layoutControl1; this.spinEditFontSize.TabIndex = 1; // // cmbShowMode // this.cmbShowMode.EditValue = "面向屏幕"; this.cmbShowMode.Location = new System.Drawing.Point(87, 142); this.cmbShowMode.Name = "cmbShowMode"; this.cmbShowMode.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.cmbShowMode.Properties.Items.AddRange(new object[] { "面向屏幕", "固定轴", "固定轴躺着" }); this.cmbShowMode.Size = new System.Drawing.Size(185, 22); this.cmbShowMode.StyleController = this.layoutControl1; this.cmbShowMode.TabIndex = 5; // // BackColorEdit // this.BackColorEdit.EditValue = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25))))); this.BackColorEdit.Location = new System.Drawing.Point(87, 64); this.BackColorEdit.Name = "BackColorEdit"; this.BackColorEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.BackColorEdit.Size = new System.Drawing.Size(185, 22); this.BackColorEdit.StyleController = this.layoutControl1; this.BackColorEdit.TabIndex = 2; // // UnderLineCheckEdit // this.UnderLineCheckEdit.Location = new System.Drawing.Point(87, 214); this.UnderLineCheckEdit.Name = "UnderLineCheckEdit"; this.UnderLineCheckEdit.Properties.Caption = ""; this.UnderLineCheckEdit.Size = new System.Drawing.Size(185, 19); this.UnderLineCheckEdit.StyleController = this.layoutControl1; this.UnderLineCheckEdit.TabIndex = 8; // // ItalicCheckEdit // this.ItalicCheckEdit.Location = new System.Drawing.Point(87, 191); this.ItalicCheckEdit.Name = "ItalicCheckEdit"; this.ItalicCheckEdit.Properties.Caption = ""; this.ItalicCheckEdit.Size = new System.Drawing.Size(185, 19); this.ItalicCheckEdit.StyleController = this.layoutControl1; this.ItalicCheckEdit.TabIndex = 7; // // BoldCheckEdit // this.BoldCheckEdit.Location = new System.Drawing.Point(87, 168); this.BoldCheckEdit.Name = "BoldCheckEdit"; this.BoldCheckEdit.Properties.Caption = ""; this.BoldCheckEdit.Size = new System.Drawing.Size(185, 19); this.BoldCheckEdit.StyleController = this.layoutControl1; this.BoldCheckEdit.TabIndex = 6; // // outLineColorEdit // this.outLineColorEdit.EditValue = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25))))); this.outLineColorEdit.Location = new System.Drawing.Point(87, 116); this.outLineColorEdit.Name = "outLineColorEdit"; this.outLineColorEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.outLineColorEdit.Size = new System.Drawing.Size(185, 22); this.outLineColorEdit.StyleController = this.layoutControl1; this.outLineColorEdit.TabIndex = 4; // // spinEditOffSet // this.spinEditOffSet.EditValue = new decimal(new int[] { 1, 0, 0, 0 }); this.spinEditOffSet.Location = new System.Drawing.Point(87, 364); this.spinEditOffSet.Name = "spinEditOffSet"; this.spinEditOffSet.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditOffSet.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.spinEditOffSet.Size = new System.Drawing.Size(185, 22); this.spinEditOffSet.StyleController = this.layoutControl1; this.spinEditOffSet.TabIndex = 14; // // spinEditPriority // this.spinEditPriority.EditValue = new decimal(new int[] { 1, 0, 0, 0 }); this.spinEditPriority.Location = new System.Drawing.Point(87, 286); this.spinEditPriority.Name = "spinEditPriority"; this.spinEditPriority.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditPriority.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.spinEditPriority.Properties.IsFloatValue = false; this.spinEditPriority.Properties.Mask.EditMask = "N00"; this.spinEditPriority.Properties.MaxLength = 5; this.spinEditPriority.Properties.MaxValue = new decimal(new int[] { 10, 0, 0, 0 }); this.spinEditPriority.Properties.MinValue = new decimal(new int[] { 1, 0, 0, 0 }); this.spinEditPriority.Size = new System.Drawing.Size(185, 22); this.spinEditPriority.StyleController = this.layoutControl1; this.spinEditPriority.TabIndex = 11; // // spinEditMinDis // this.spinEditMinDis.EditValue = new decimal(new int[] { 1, 0, 0, 0 }); this.spinEditMinDis.Location = new System.Drawing.Point(87, 416); this.spinEditMinDis.Name = "spinEditMinDis"; this.spinEditMinDis.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditMinDis.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.spinEditMinDis.Size = new System.Drawing.Size(185, 22); this.spinEditMinDis.StyleController = this.layoutControl1; this.spinEditMinDis.TabIndex = 16; // // spinEditMaxDis // this.spinEditMaxDis.EditValue = new decimal(new int[] { 10000000, 0, 0, 0 }); this.spinEditMaxDis.Location = new System.Drawing.Point(87, 390); this.spinEditMaxDis.Name = "spinEditMaxDis"; this.spinEditMaxDis.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditMaxDis.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.spinEditMaxDis.Size = new System.Drawing.Size(185, 22); this.spinEditMaxDis.StyleController = this.layoutControl1; this.spinEditMaxDis.TabIndex = 15; // // fontColorEdit // this.fontColorEdit.EditValue = System.Drawing.Color.White; this.fontColorEdit.Location = new System.Drawing.Point(87, 90); this.fontColorEdit.Name = "fontColorEdit"; this.fontColorEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.fontColorEdit.Size = new System.Drawing.Size(185, 22); this.fontColorEdit.StyleController = this.layoutControl1; this.fontColorEdit.TabIndex = 3; // // fontEdit // this.fontEdit.EditValue = "Arial"; this.fontEdit.Location = new System.Drawing.Point(87, 12); this.fontEdit.Name = "fontEdit"; this.fontEdit.Properties.Appearance.Font = new System.Drawing.Font("Arial Narrow", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.fontEdit.Properties.Appearance.Options.UseFont = true; this.fontEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.fontEdit.Size = new System.Drawing.Size(185, 22); this.fontEdit.StyleController = this.layoutControl1; this.fontEdit.TabIndex = 0; // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem3, this.layoutControlItem4, this.layoutControlItem5, this.layoutControlItem6, this.layoutControlItem7, this.layoutControlItem8, this.layoutControlItem9, this.layoutControlItem10, this.layoutControlItem11, this.layoutControlItem12, this.layoutControlItem13, this.layoutControlItem14, this.layoutControlItem2, this.layoutControlItem15, this.layoutControlItem16, this.layoutControlItem17 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(284, 453); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.fontEdit; this.layoutControlItem1.CustomizationFormText = "字体"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(264, 26); this.layoutControlItem1.Text = "字体"; this.layoutControlItem1.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem3 // this.layoutControlItem3.Control = this.fontColorEdit; this.layoutControlItem3.CustomizationFormText = "字体颜色"; this.layoutControlItem3.Location = new System.Drawing.Point(0, 78); this.layoutControlItem3.Name = "layoutControlItem3"; this.layoutControlItem3.Size = new System.Drawing.Size(264, 26); this.layoutControlItem3.Text = "字体颜色"; this.layoutControlItem3.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem5 // this.layoutControlItem5.Control = this.spinEditMaxDis; this.layoutControlItem5.CustomizationFormText = "最大可视距离"; this.layoutControlItem5.Location = new System.Drawing.Point(0, 378); this.layoutControlItem5.Name = "layoutControlItem5"; this.layoutControlItem5.Size = new System.Drawing.Size(264, 26); this.layoutControlItem5.Text = "最大可视距离"; this.layoutControlItem5.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem6 // this.layoutControlItem6.Control = this.spinEditMinDis; this.layoutControlItem6.CustomizationFormText = "最小可视距离"; this.layoutControlItem6.Location = new System.Drawing.Point(0, 404); this.layoutControlItem6.Name = "layoutControlItem6"; this.layoutControlItem6.Size = new System.Drawing.Size(264, 29); this.layoutControlItem6.Text = "最小可视距离"; this.layoutControlItem6.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem7 // this.layoutControlItem7.Control = this.spinEditPriority; this.layoutControlItem7.CustomizationFormText = "优先级"; this.layoutControlItem7.Location = new System.Drawing.Point(0, 274); this.layoutControlItem7.Name = "layoutControlItem7"; this.layoutControlItem7.Size = new System.Drawing.Size(264, 26); this.layoutControlItem7.Text = "优先级"; this.layoutControlItem7.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem8 // this.layoutControlItem8.Control = this.spinEditOffSet; this.layoutControlItem8.CustomizationFormText = "高度偏移"; this.layoutControlItem8.Location = new System.Drawing.Point(0, 352); this.layoutControlItem8.Name = "layoutControlItem8"; this.layoutControlItem8.Size = new System.Drawing.Size(264, 26); this.layoutControlItem8.Text = "高度偏移"; this.layoutControlItem8.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem9 // this.layoutControlItem9.Control = this.outLineColorEdit; this.layoutControlItem9.CustomizationFormText = "外轮廓颜色"; this.layoutControlItem9.Location = new System.Drawing.Point(0, 104); this.layoutControlItem9.Name = "layoutControlItem9"; this.layoutControlItem9.Size = new System.Drawing.Size(264, 26); this.layoutControlItem9.Text = "外轮廓颜色"; this.layoutControlItem9.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem10 // this.layoutControlItem10.Control = this.BoldCheckEdit; this.layoutControlItem10.CustomizationFormText = "粗体"; this.layoutControlItem10.Location = new System.Drawing.Point(0, 156); this.layoutControlItem10.Name = "layoutControlItem10"; this.layoutControlItem10.Size = new System.Drawing.Size(264, 23); this.layoutControlItem10.Text = "粗体"; this.layoutControlItem10.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem11 // this.layoutControlItem11.Control = this.ItalicCheckEdit; this.layoutControlItem11.CustomizationFormText = "斜体"; this.layoutControlItem11.Location = new System.Drawing.Point(0, 179); this.layoutControlItem11.Name = "layoutControlItem11"; this.layoutControlItem11.Size = new System.Drawing.Size(264, 23); this.layoutControlItem11.Text = "斜体"; this.layoutControlItem11.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem12 // this.layoutControlItem12.Control = this.UnderLineCheckEdit; this.layoutControlItem12.CustomizationFormText = "下划线"; this.layoutControlItem12.Location = new System.Drawing.Point(0, 202); this.layoutControlItem12.Name = "layoutControlItem12"; this.layoutControlItem12.Size = new System.Drawing.Size(264, 23); this.layoutControlItem12.Text = "下划线"; this.layoutControlItem12.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem13 // this.layoutControlItem13.Control = this.BackColorEdit; this.layoutControlItem13.CustomizationFormText = "背景色"; this.layoutControlItem13.Location = new System.Drawing.Point(0, 52); this.layoutControlItem13.Name = "layoutControlItem13"; this.layoutControlItem13.Size = new System.Drawing.Size(264, 26); this.layoutControlItem13.Text = "背景色"; this.layoutControlItem13.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem14 // this.layoutControlItem14.Control = this.cmbShowMode; this.layoutControlItem14.CustomizationFormText = "显示模式"; this.layoutControlItem14.Location = new System.Drawing.Point(0, 130); this.layoutControlItem14.Name = "layoutControlItem14"; this.layoutControlItem14.Size = new System.Drawing.Size(264, 26); this.layoutControlItem14.Text = "显示模式"; this.layoutControlItem14.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem2 // this.layoutControlItem2.Control = this.spinEditFontSize; this.layoutControlItem2.CustomizationFormText = "字号"; this.layoutControlItem2.Location = new System.Drawing.Point(0, 26); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(264, 26); this.layoutControlItem2.Text = "字号"; this.layoutControlItem2.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem15 // this.layoutControlItem15.Control = this.cmbAlign; this.layoutControlItem15.CustomizationFormText = "对齐方式"; this.layoutControlItem15.Location = new System.Drawing.Point(0, 248); this.layoutControlItem15.Name = "layoutControlItem15"; this.layoutControlItem15.Size = new System.Drawing.Size(264, 26); this.layoutControlItem15.Text = "对齐方式"; this.layoutControlItem15.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem16 // this.layoutControlItem16.Control = this.spinEditHPixelOff; this.layoutControlItem16.CustomizationFormText = "横向像素偏移"; this.layoutControlItem16.Location = new System.Drawing.Point(0, 300); this.layoutControlItem16.Name = "layoutControlItem16"; this.layoutControlItem16.Size = new System.Drawing.Size(264, 26); this.layoutControlItem16.Text = "横向像素偏移"; this.layoutControlItem16.TextSize = new System.Drawing.Size(72, 14); // // layoutControlItem17 // this.layoutControlItem17.Control = this.spinEditVPixelOff; this.layoutControlItem17.CustomizationFormText = "纵向像素偏移"; this.layoutControlItem17.Location = new System.Drawing.Point(0, 326); this.layoutControlItem17.Name = "layoutControlItem17"; this.layoutControlItem17.Size = new System.Drawing.Size(264, 26); this.layoutControlItem17.Text = "纵向像素偏移"; this.layoutControlItem17.TextSize = new System.Drawing.Size(72, 14); // // UCSimpleLabel // this.Controls.Add(this.layoutControl1); this.Name = "UCSimpleLabel"; this.Size = new System.Drawing.Size(284, 453); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkEditDrawLine.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.spinEditVPixelOff.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditHPixelOff.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cmbAlign.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditFontSize.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cmbShowMode.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.BackColorEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.UnderLineCheckEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ItalicCheckEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.BoldCheckEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.outLineColorEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditOffSet.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditPriority.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditMinDis.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditMaxDis.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fontColorEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.fontEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit(); this.ResumeLayout(false); }
public PWPopupColorEditForm(ColorEdit ownerEdit) : base(ownerEdit) { }
public MyPopupColorPickEditForm(ColorEdit ownerEdit) : base(ownerEdit) { Controls.Add(GetClearButton()); }
private void SetColor(ColorEdit sender) { switch ( sender.Name ) { case "PostedComplectation": Consts.PostedComplectation = sender.Color; break; case "BreakedComplectation": Consts.BreakedComplectation = sender.Color; break; } }
private void InitializeComponent() { this.colorEdit = new DevExpress.XtraEditors.ColorEdit(); this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); this.cmbPivotAlign = new DevExpress.XtraEditors.ComboBoxEdit(); this.buttonEditFilePath = new DevExpress.XtraEditors.ButtonEdit(); this.cmbSysRes = new DevExpress.XtraEditors.ComboBoxEdit(); this.cmbType = new DevExpress.XtraEditors.ComboBoxEdit(); this.spinEditSize = new DevExpress.XtraEditors.SpinEdit(); this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); this.sysReslayoutControl = new DevExpress.XtraLayout.LayoutControlItem(); this.localReslayoutControl = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); this.layoutControl = new DevExpress.XtraLayout.LayoutControlItem(); ((System.ComponentModel.ISupportInitialize)(this.colorEdit.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); this.layoutControl1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.cmbPivotAlign.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonEditFilePath.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cmbSysRes.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cmbType.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditSize.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.sysReslayoutControl)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.localReslayoutControl)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl)).BeginInit(); this.SuspendLayout(); // // colorEdit // this.colorEdit.EditValue = System.Drawing.Color.Lime; this.colorEdit.Location = new System.Drawing.Point(63, 90); this.colorEdit.Name = "colorEdit"; this.colorEdit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.colorEdit.Size = new System.Drawing.Size(211, 22); this.colorEdit.StyleController = this.layoutControl1; this.colorEdit.TabIndex = 3; // // layoutControl1 // this.layoutControl1.Controls.Add(this.cmbPivotAlign); this.layoutControl1.Controls.Add(this.buttonEditFilePath); this.layoutControl1.Controls.Add(this.cmbSysRes); this.layoutControl1.Controls.Add(this.cmbType); this.layoutControl1.Controls.Add(this.colorEdit); this.layoutControl1.Controls.Add(this.spinEditSize); this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.layoutControl1.Location = new System.Drawing.Point(0, 0); this.layoutControl1.Name = "layoutControl1"; this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(329, 108, 250, 350); this.layoutControl1.Root = this.layoutControlGroup1; this.layoutControl1.Size = new System.Drawing.Size(286, 178); this.layoutControl1.TabIndex = 1; this.layoutControl1.Text = "layoutControl1"; // // cmbPivotAlign // this.cmbPivotAlign.EditValue = "中下"; this.cmbPivotAlign.Location = new System.Drawing.Point(63, 38); this.cmbPivotAlign.Name = "cmbPivotAlign"; this.cmbPivotAlign.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.cmbPivotAlign.Properties.Items.AddRange(new object[] { "左下", "中下", "右下", "左中", "正中", "右中", "左上", "中上", "右上" }); this.cmbPivotAlign.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.cmbPivotAlign.Size = new System.Drawing.Size(211, 22); this.cmbPivotAlign.StyleController = this.layoutControl1; this.cmbPivotAlign.TabIndex = 1; // // buttonEditFilePath // this.buttonEditFilePath.Location = new System.Drawing.Point(63, 142); this.buttonEditFilePath.Name = "buttonEditFilePath"; this.buttonEditFilePath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.buttonEditFilePath.Properties.ReadOnly = true; this.buttonEditFilePath.Size = new System.Drawing.Size(211, 22); this.buttonEditFilePath.StyleController = this.layoutControl1; this.buttonEditFilePath.TabIndex = 5; this.buttonEditFilePath.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.buttonEditFilePath_ButtonClick); // // cmbSysRes // this.cmbSysRes.EditValue = "圆形"; this.cmbSysRes.Location = new System.Drawing.Point(12, 116); this.cmbSysRes.Name = "cmbSysRes"; this.cmbSysRes.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.cmbSysRes.Properties.Items.AddRange(new object[] { "圆形", "方形", "十字形", "叉形", "菱形" }); this.cmbSysRes.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.cmbSysRes.Size = new System.Drawing.Size(262, 22); this.cmbSysRes.StyleController = this.layoutControl1; this.cmbSysRes.TabIndex = 4; // // cmbType // this.cmbType.EditValue = "系统"; this.cmbType.Location = new System.Drawing.Point(63, 64); this.cmbType.Name = "cmbType"; this.cmbType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); this.cmbType.Properties.Items.AddRange(new object[] { "系统", "本地" }); this.cmbType.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; this.cmbType.Size = new System.Drawing.Size(211, 22); this.cmbType.StyleController = this.layoutControl1; this.cmbType.TabIndex = 2; this.cmbType.SelectedIndexChanged += new System.EventHandler(this.cmbType_SelectedIndexChanged); // // spinEditSize // this.spinEditSize.EditValue = new decimal(new int[] { 5, 0, 0, 0 }); this.spinEditSize.Location = new System.Drawing.Point(63, 12); this.spinEditSize.Name = "spinEditSize"; this.spinEditSize.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton() }); this.spinEditSize.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.spinEditSize.Properties.IsFloatValue = false; this.spinEditSize.Properties.Mask.EditMask = "N00"; this.spinEditSize.Properties.MaxValue = new decimal(new int[] { 1000, 0, 0, 0 }); this.spinEditSize.Properties.MinValue = new decimal(new int[] { 1, 0, 0, 0 }); this.spinEditSize.Size = new System.Drawing.Size(211, 22); this.spinEditSize.StyleController = this.layoutControl1; this.spinEditSize.TabIndex = 0; // // layoutControlGroup1 // this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1"; this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; this.layoutControlGroup1.GroupBordersVisible = false; this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { this.layoutControlItem1, this.layoutControlItem4, this.sysReslayoutControl, this.localReslayoutControl, this.layoutControlItem6, this.layoutControlItem2 }); this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); this.layoutControlGroup1.Name = "layoutControlGroup1"; this.layoutControlGroup1.Size = new System.Drawing.Size(286, 178); this.layoutControlGroup1.Text = "layoutControlGroup1"; this.layoutControlGroup1.TextVisible = false; // // layoutControlItem1 // this.layoutControlItem1.Control = this.spinEditSize; this.layoutControlItem1.CustomizationFormText = "大小"; this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); this.layoutControlItem1.Name = "layoutControlItem1"; this.layoutControlItem1.Size = new System.Drawing.Size(266, 26); this.layoutControlItem1.Text = "大小"; this.layoutControlItem1.TextSize = new System.Drawing.Size(48, 14); // // layoutControlItem4 // this.layoutControlItem4.Control = this.cmbType; this.layoutControlItem4.CustomizationFormText = "符合资源"; this.layoutControlItem4.Location = new System.Drawing.Point(0, 52); this.layoutControlItem4.Name = "layoutControlItem4"; this.layoutControlItem4.Size = new System.Drawing.Size(266, 26); this.layoutControlItem4.Text = "符号资源"; this.layoutControlItem4.TextSize = new System.Drawing.Size(48, 14); // // sysReslayoutControl // this.sysReslayoutControl.Control = this.cmbSysRes; this.sysReslayoutControl.CustomizationFormText = "sysReslayoutControl"; this.sysReslayoutControl.Location = new System.Drawing.Point(0, 104); this.sysReslayoutControl.Name = "sysReslayoutControl"; this.sysReslayoutControl.Size = new System.Drawing.Size(266, 26); this.sysReslayoutControl.Text = "sysReslayoutControl"; this.sysReslayoutControl.TextSize = new System.Drawing.Size(0, 0); this.sysReslayoutControl.TextToControlDistance = 0; this.sysReslayoutControl.TextVisible = false; this.sysReslayoutControl.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; // // localReslayoutControl // this.localReslayoutControl.Control = this.buttonEditFilePath; this.localReslayoutControl.CustomizationFormText = "选择文件"; this.localReslayoutControl.Location = new System.Drawing.Point(0, 130); this.localReslayoutControl.Name = "localReslayoutControl"; this.localReslayoutControl.Size = new System.Drawing.Size(266, 28); this.localReslayoutControl.Text = "选择文件"; this.localReslayoutControl.TextSize = new System.Drawing.Size(48, 14); this.localReslayoutControl.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never; // // layoutControlItem6 // this.layoutControlItem6.Control = this.cmbPivotAlign; this.layoutControlItem6.CustomizationFormText = "布局"; this.layoutControlItem6.Location = new System.Drawing.Point(0, 26); this.layoutControlItem6.Name = "layoutControlItem6"; this.layoutControlItem6.Size = new System.Drawing.Size(266, 26); this.layoutControlItem6.Text = "布局"; this.layoutControlItem6.TextSize = new System.Drawing.Size(48, 14); // // layoutControlItem2 // this.layoutControlItem2.Control = this.colorEdit; this.layoutControlItem2.CustomizationFormText = "颜色"; this.layoutControlItem2.Location = new System.Drawing.Point(0, 78); this.layoutControlItem2.Name = "layoutControlItem2"; this.layoutControlItem2.Size = new System.Drawing.Size(266, 26); this.layoutControlItem2.Text = "颜色"; this.layoutControlItem2.TextSize = new System.Drawing.Size(48, 14); // // layoutControl // this.layoutControl.Control = this.buttonEditFilePath; this.layoutControl.CustomizationFormText = "layoutControlItem6"; this.layoutControl.Location = new System.Drawing.Point(0, 120); this.layoutControl.Name = "layoutControl"; this.layoutControl.Size = new System.Drawing.Size(329, 24); this.layoutControl.Text = "layoutControl"; this.layoutControl.TextSize = new System.Drawing.Size(48, 14); this.layoutControl.TextToControlDistance = 5; // // UCPointSymbol // this.Controls.Add(this.layoutControl1); this.Name = "UCPointSymbol"; this.Size = new System.Drawing.Size(286, 178); ((System.ComponentModel.ISupportInitialize)(this.colorEdit.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); this.layoutControl1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.cmbPivotAlign.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonEditFilePath.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cmbSysRes.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cmbType.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.spinEditSize.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.sysReslayoutControl)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.localReslayoutControl)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.layoutControl)).EndInit(); this.ResumeLayout(false); }
private void InitChaos() { var tree = new TreeNode("Chaos") { //DefaultOpened = true, FrameType = IToolTreeNode.TreeNodeFrameType.Framed }; Group.AddComponent(tree); var line = graph.AddData(Array.Empty <Vector2F>()); var color = new Color(255, 255, 100, 0); line.Color = color; color.A = 255; var colorEdit = new ColorEdit("Color", color) { EditAlpha = false }; colorEdit.ColorChanged += (x, y) => { var c = y.NewValue; c.A = line.Color.A; line.Color = c; }; tree.AddComponent(colorEdit); var inputFloat_Init = new InputFloat1("InitValue", 0.1f) { Min = 0.0f, Max = 1.0f }; inputFloat_Init.ValueChanged += (x, y) => updateChaosLine?.Invoke(false); tree.AddComponent(inputFloat_Init); var inputFloat_Lamda = new InputFloat1("lamda", 1.0f) { Min = 0.0f, Max = 4.0f, }; inputFloat_Lamda.ValueChanged += (x, y) => updateChaosLine?.Invoke(false); tree.AddComponent(inputFloat_Lamda); var inputFloat_Arg = new InputFloat1("Arg", 1.0f) { Min = 0.0f }; inputFloat_Arg.ValueChanged += (x, y) => updateChaosLine?.Invoke(false); tree.AddComponent(inputFloat_Arg); var inputInt_Count = new InputInt1("Count", 50) { Min = 1 }; inputInt_Count.ValueChanged += (x, y) => updateChaosLine?.Invoke(false); tree.AddComponent(inputInt_Count); var checkBox = new CheckBox("Shown", false); checkBox.ChangeChecked += (x, y) => { var c = line.Color; c.A = y.NewValue ? byte.MaxValue : default; line.Color = c; }; tree.AddComponent(checkBox); updateChaosLine = x => { if (x) { inputFloat_Arg.Value = graph.MaxY; } line.Data = CalcChaos(inputInt_Count.Value, inputFloat_Lamda.Value, inputFloat_Init.Value, inputFloat_Arg.Value); }; }