void SetComponent(IPropertyEditorParams editorParams, int component, NumericEditBox editor, float currentValue) { float newValue; if (float.TryParse(editor.Text, out newValue)) { foreach (var obj in editorParams.Objects) { var current = new Property <NumericRange>(obj, editorParams.PropertyName).Value; if (component == 0) { current.Median = newValue; } else { current.Dispersion = newValue; } editorParams.PropertySetter(obj, editorParams.PropertyName, current); } } else { editor.Text = currentValue.ToString(); } }
void SetComponent(IPropertyEditorParams editorParams, int component, NumericEditBox editor, CoalescedValue <float> currentValue) { if (Parser.TryParse(editor.Text, out double newValue)) { DoTransaction(() => { SetProperty <NumericRange>(current => { if (component == 0) { current.Median = (float)newValue; } else { current.Dispersion = (float)newValue; } return(current); }); }); editor.Text = newValue.ToString("0.###"); } else { editor.Text = currentValue.IsDefined ? currentValue.Value.ToString("0.###") : ManyValuesText; } }
public Vector2PropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { EditorContainer.AddNode(new Widget { Layout = new HBoxLayout { DefaultCell = new DefaultLayoutCell(Alignment.Center), Spacing = 4 }, Nodes = { //new SimpleText { Text = "X" }, (editorX = editorParams.NumericEditBoxFactory()), // new SimpleText { Text = "Y" }, (editorY = editorParams.NumericEditBoxFactory()), Spacer.HStretch(), } }); var currentX = CoalescedPropertyComponentValue(v => v.X); var currentY = CoalescedPropertyComponentValue(v => v.Y); editorX.Submitted += text => SetComponent(editorParams, 0, editorX, currentX.GetValue()); editorY.Submitted += text => SetComponent(editorParams, 1, editorY, currentY.GetValue()); editorX.AddChangeLateWatcher(currentX, v => editorX.Text = v.IsDefined ? v.Value.ToString("0.###") : ManyValuesText); editorY.AddChangeLateWatcher(currentY, v => editorY.Text = v.IsDefined ? v.Value.ToString("0.###") : ManyValuesText); ManageManyValuesOnFocusChange(editorX, currentX); ManageManyValuesOnFocusChange(editorY, currentY); }
public QuaternionPropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { EditorContainer.AddNode(new Widget { Layout = new HBoxLayout { DefaultCell = new DefaultLayoutCell(Alignment.Center), Spacing = 4 }, Nodes = { (editorX = editorParams.NumericEditBoxFactory()), (editorY = editorParams.NumericEditBoxFactory()), (editorZ = editorParams.NumericEditBoxFactory()), Spacer.HStretch(), } }); var current = CoalescedPropertyValue(); editorX.Submitted += text => SetComponent(editorParams, 0, editorX, current.GetValue()); editorY.Submitted += text => SetComponent(editorParams, 1, editorY, current.GetValue()); editorZ.Submitted += text => SetComponent(editorParams, 2, editorZ, current.GetValue()); editorX.AddChangeWatcher(current, v => { var ea = v.ToEulerAngles() * Mathf.RadToDeg; editorX.Text = RoundAngle(ea.X).ToString("0.###"); editorY.Text = RoundAngle(ea.Y).ToString("0.###"); editorZ.Text = RoundAngle(ea.Z).ToString("0.###"); }); }
public Vector3PropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { EditorContainer.AddNode(new Widget { Layout = new HBoxLayout { DefaultCell = new DefaultLayoutCell(Alignment.Center), Spacing = 4 }, Nodes = { (editorX = editorParams.NumericEditBoxFactory()), (editorY = editorParams.NumericEditBoxFactory()), (editorZ = editorParams.NumericEditBoxFactory()), Spacer.HStretch(), } }); var currentX = CoalescedPropertyComponentValue(v => v.X); var currentY = CoalescedPropertyComponentValue(v => v.Y); var currentZ = CoalescedPropertyComponentValue(v => v.Z); editorX.Submitted += text => SetComponent(editorParams, 0, editorX, currentX.GetValue()); editorY.Submitted += text => SetComponent(editorParams, 1, editorY, currentY.GetValue()); editorZ.Submitted += text => SetComponent(editorParams, 2, editorZ, currentZ.GetValue()); editorX.AddChangeWatcher(currentX, v => editorX.Text = v.ToString("0.###")); editorY.AddChangeWatcher(currentY, v => editorY.Text = v.ToString("0.###")); editorZ.AddChangeWatcher(currentZ, v => editorZ.Text = v.ToString("0.###")); }
public ThicknessPropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { EditorContainer.AddNode(new Widget { Layout = new HBoxLayout { DefaultCell = new DefaultLayoutCell(Alignment.Center), Spacing = 4 }, Nodes = { (editorLeft = editorParams.NumericEditBoxFactory()), (editorRight = editorParams.NumericEditBoxFactory()), (editorTop = editorParams.NumericEditBoxFactory()), (editorBottom = editorParams.NumericEditBoxFactory()), Spacer.HStretch(), } }); var currentLeft = CoalescedPropertyComponentValue(v => v.Left); var currentRight = CoalescedPropertyComponentValue(v => v.Right); var currentTop = CoalescedPropertyComponentValue(v => v.Top); var currentBottom = CoalescedPropertyComponentValue(v => v.Bottom); editorLeft.Submitted += text => SetComponent(editorParams, 0, editorLeft, currentLeft.GetValue()); editorRight.Submitted += text => SetComponent(editorParams, 1, editorRight, currentRight.GetValue()); editorTop.Submitted += text => SetComponent(editorParams, 2, editorTop, currentTop.GetValue()); editorBottom.Submitted += text => SetComponent(editorParams, 3, editorBottom, currentBottom.GetValue()); editorLeft.AddChangeLateWatcher(currentLeft, v => editorLeft.Text = v.IsDefined ? v.Value.ToString("0.###") : ManyValuesText); editorRight.AddChangeLateWatcher(currentRight, v => editorRight.Text = v.IsDefined ? v.Value.ToString("0.###") : ManyValuesText); editorTop.AddChangeLateWatcher(currentTop, v => editorTop.Text = v.IsDefined ? v.Value.ToString("0.###") : ManyValuesText); editorBottom.AddChangeLateWatcher(currentBottom, v => editorBottom.Text = v.IsDefined ? v.Value.ToString("0.###") : ManyValuesText); ManageManyValuesOnFocusChange(editorLeft, currentLeft); ManageManyValuesOnFocusChange(editorRight, currentRight); ManageManyValuesOnFocusChange(editorTop, currentTop); ManageManyValuesOnFocusChange(editorBottom, currentBottom); }
public FloatPropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { editor = editorParams.NumericEditBoxFactory(); EditorContainer.AddNode(editor); EditorContainer.AddNode(Spacer.HStretch()); var current = CoalescedPropertyValue(); editor.Submitted += text => SetComponent(text, current); editor.AddChangeWatcher(current, v => editor.Text = v.ToString("0.###")); }
public FloatPropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { editor = editorParams.NumericEditBoxFactory(); EditorContainer.AddNode(editor); EditorContainer.AddNode(Spacer.HStretch()); var current = CoalescedPropertyValue(); editor.Submitted += text => SetComponent(text, current.GetValue()); editor.AddChangeLateWatcher(current, v => editor.Text = v.IsDefined ? v.Value.ToString("0.###") : ManyValuesText); ManageManyValuesOnFocusChange(editor, current); }
public SBytePropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { editor = editorParams.NumericEditBoxFactory(); // TODO: move IsReadOnly to IPropertyEditor editor.IsReadOnly = editorParams.PropertyInfo.GetCustomAttribute <TangerineReadOnlyAttribute>(true) != null; editor.LayoutCell = new LayoutCell(Alignment.Center); EditorContainer.AddNode(editor); EditorContainer.AddNode(Spacer.HStretch()); var current = CoalescedPropertyValue(); editor.Submitted += text => SetComponent(text, current.GetValue()); editor.AddChangeLateWatcher(current, v => editor.Text = v.IsDefined ? v.Value.ToString() : ManyValuesText); ManageManyValuesOnFocusChange(editor, current); }
public DoublePropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { editor = editorParams.NumericEditBoxFactory(); EditorContainer.AddNode(editor); var current = CoalescedPropertyValue(); editor.Submitted += text => { if (Parser.TryParse(text, out double newValue)) { SetProperty(newValue); } editor.Text = current.GetValue().ToString("0.###"); }; editor.AddChangeWatcher(current, v => editor.Text = v.ToString("0.###")); }
void SetComponent(IPropertyEditorParams editorParams, int component, NumericEditBox editor, float currentValue) { if (Parser.TryParse(editor.Text, out double newValue)) { DoTransaction(() => { SetProperty <Vector3>((current) => { current[component] = (float)newValue; return(current); }); }); editor.Text = newValue.ToString("0.###"); } else { editor.Text = currentValue.ToString("0.###"); } }
public FloatPropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { editor = editorParams.NumericEditBoxFactory(); ContainerWidget.AddNode(editor); var current = CoalescedPropertyValue(); editor.Submitted += text => { float newValue; if (float.TryParse(text, out newValue)) { SetProperty(newValue); } editor.Text = current.GetValue().ToString(); }; editor.AddChangeWatcher(current, v => editor.Text = v.ToString()); }
void SetComponent(IPropertyEditorParams editorParams, int component, NumericEditBox editor, float currentValue) { float newValue; if (float.TryParse(editor.Text, out newValue)) { foreach (var obj in editorParams.Objects) { var current = new Property <Vector3>(obj, editorParams.PropertyName).Value; current[component] = newValue; editorParams.PropertySetter(obj, editorParams.PropertyName, current); } } else { editor.Text = currentValue.ToString(); } }
void SetComponent(IPropertyEditorParams editorParams, int component, NumericEditBox editor, Quaternion currentValue) { float newValue; if (float.TryParse(editor.Text, out newValue)) { foreach (var obj in editorParams.Objects) { var current = new Property <Quaternion>(obj, editorParams.PropertyName).Value.ToEulerAngles(); current[component] = newValue * Mathf.DegToRad; editorParams.PropertySetter(obj, editorParams.PropertyName, Quaternion.CreateFromEulerAngles(current)); } } else { editor.Text = RoundAngle(currentValue.ToEulerAngles()[component] * Mathf.RadToDeg).ToString(); } }
void SetComponent(IPropertyEditorParams editorParams, int component, NumericEditBox editor, Quaternion currentValue) { float newValue; if (float.TryParse(editor.Text, out newValue)) { DoTransaction(() => { SetProperty <Quaternion>((current) => { var eulerAngles = current.ToEulerAngles(); eulerAngles[component] = newValue * Mathf.DegToRad; return(Quaternion.CreateFromEulerAngles(eulerAngles)); }); }); } else { editor.Text = RoundAngle(currentValue.ToEulerAngles()[component] * Mathf.RadToDeg).ToString("0.###"); } }
public NumericRangePropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { ContainerWidget.AddNode(new Widget { Layout = new HBoxLayout { CellDefaults = new LayoutCell(Alignment.Center), Spacing = 4 }, Nodes = { (medEditor = editorParams.NumericEditBoxFactory()), (dispEditor = editorParams.NumericEditBoxFactory()), } }); var currentMed = CoalescedPropertyComponentValue(v => v.Median); var currentDisp = CoalescedPropertyComponentValue(v => v.Dispersion); medEditor.Submitted += text => SetComponent(editorParams, 0, medEditor, currentMed.GetValue()); dispEditor.Submitted += text => SetComponent(editorParams, 1, dispEditor, currentDisp.GetValue()); medEditor.AddChangeWatcher(currentMed, v => medEditor.Text = v.ToString()); dispEditor.AddChangeWatcher(currentDisp, v => dispEditor.Text = v.ToString()); }
public Vector2PropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { ContainerWidget.AddNode(new Widget { Layout = new HBoxLayout { CellDefaults = new LayoutCell(Alignment.Center), Spacing = 4 }, Nodes = { (editorX = editorParams.NumericEditBoxFactory()), (editorY = editorParams.NumericEditBoxFactory()) } }); var currentX = CoalescedPropertyComponentValue(v => v.X); var currentY = CoalescedPropertyComponentValue(v => v.Y); editorX.Submitted += text => SetComponent(editorParams, 0, editorX, currentX.GetValue()); editorY.Submitted += text => SetComponent(editorParams, 1, editorY, currentY.GetValue()); editorX.AddChangeWatcher(currentX, v => editorX.Text = v.ToString()); editorY.AddChangeWatcher(currentY, v => editorY.Text = v.ToString()); }
public DoublePropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { editor = editorParams.NumericEditBoxFactory(); EditorContainer.AddNode(editor); var current = CoalescedPropertyValue(); editor.Submitted += text => { if (Parser.TryParse(text, out double newValue)) { SetProperty(newValue); } else { var currentValue = current.GetValue(); editor.Text = currentValue.IsDefined ? currentValue.Value.ToString("0.###") : ManyValuesText; } }; editor.AddChangeLateWatcher(current, v => editor.Text = v.IsDefined ? v.Value.ToString("0.###") : ManyValuesText); ManageManyValuesOnFocusChange(editor, current); }
public BlendingPropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { editor = editorParams.NumericEditBoxFactory(); editor.Step = 1f; editor.MinMaxWidth = 80; editor.LayoutCell = new LayoutCell(Alignment.Center); EditorContainer.AddNode(editor); var current = CoalescedPropertyValue(); editor.Submitted += text => { if (int.TryParse(text, out var newValue)) { SetProperty(new BlendingOption(newValue)); } else { editor.Text = current.GetValue().Frames.ToString(); } }; editor.AddChangeWatcher(current, v => editor.Text = v?.Frames.ToString() ?? "0"); }
public NumericRangePropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { EditorContainer.AddNode(new Widget { Layout = new HBoxLayout { DefaultCell = new DefaultLayoutCell(Alignment.Center), Spacing = 4 }, Nodes = { (medEditor = editorParams.NumericEditBoxFactory()), (dispEditor = editorParams.NumericEditBoxFactory()), Spacer.HStretch(), } }); var currentMed = CoalescedPropertyComponentValue(v => v.Median); var currentDisp = CoalescedPropertyComponentValue(v => v.Dispersion); medEditor.Submitted += text => SetComponent(editorParams, 0, medEditor, currentMed.GetValue()); dispEditor.Submitted += text => SetComponent(editorParams, 1, dispEditor, currentDisp.GetValue()); medEditor.AddChangeLateWatcher(currentMed, v => medEditor.Text = v.IsDefined ? v.Value.ToString("0.###") : ManyValuesText); dispEditor.AddChangeLateWatcher(currentDisp, v => dispEditor.Text = v.IsDefined ? v.Value.ToString("0.###") : ManyValuesText); ManageManyValuesOnFocusChange(medEditor, currentMed); ManageManyValuesOnFocusChange(dispEditor, currentDisp); }
void SetComponent(IPropertyEditorParams editorParams, int component, NumericEditBox editor, CoalescedValue <float> currentValue) { float newValue; if (float.TryParse(editor.Text, out newValue)) { DoTransaction(() => { SetProperty <Thickness>((current) => { switch (component) { case 0: current.Left = newValue; break; case 1: current.Right = newValue; break; case 2: current.Top = newValue; break; case 3: current.Bottom = newValue; break; } return(current); }); }); } else { switch (component) { case 0: editor.Text = currentValue.IsDefined ? currentValue.Value.ToString("0.###") : ManyValuesText; break; case 1: editor.Text = currentValue.IsDefined ? currentValue.Value.ToString("0.###") : ManyValuesText; break; case 2: editor.Text = currentValue.IsDefined ? currentValue.Value.ToString("0.###") : ManyValuesText; break; case 3: editor.Text = currentValue.IsDefined ? currentValue.Value.ToString("0.###") : ManyValuesText; break; } } }
void SetComponent(IPropertyEditorParams editorParams, int component, NumericEditBox editor, float currentValue) { if (Parser.TryParse(editor.Text, out double newValue)) { DoTransaction(() => { SetProperty <NumericRange>((current) => { if (component == 0) { current.Median = (float)newValue; } else { current.Dispersion = (float)newValue; } return(current); }); }); editor.Text = newValue.ToString(); } else { editor.Text = currentValue.ToString(); } }
public ColorGradientPropertyEditor(IPropertyEditorParams editorParams) : base(editorParams) { if (editorParams.Objects.Count() > 1) { ExpandButton.Visible = false; EditorContainer.AddNode(new ThemedSimpleText { Text = "Unable to edit multiple gradients", VAlignment = VAlignment.Center, LayoutCell = new LayoutCell(Alignment.Center, stretchX: 0), }); return; } gradientControlWidget = new TransactionalGradientControlWidget(EditorParams.History) { MinMaxHeight = 35f, Height = 35f, LayoutCell = new LayoutCell(Alignment.LeftCenter), Padding = new Thickness { Right = 5f, Bottom = 5f } }; var gradientProperty = CoalescedPropertyValue(new ColorGradient(Color4.White, Color4.Black)).DistinctUntilChanged(); gradientControlWidget.Gradient = gradientProperty.GetValue(); ContainerWidget.AddChangeWatcher(gradientProperty, g => gradientControlWidget.Gradient = g); gradientControlWidget.SelectionChanged += SelectPoint; EditorContainer.AddNode(gradientControlWidget); EditorContainer.AddNode(CreatePipetteButton()); ExpandableContent.Padding = new Thickness { Left = 25f, Right = 25f, Top = 5f }; ExpandableContent.AddNode(new Widget { Layout = new HBoxLayout { Spacing = 10f }, Nodes = { new ThemedSimpleText { Text = nameof(GradientControlPoint.Position), MinWidth = 150 }, (positionEditor = EditorParams.NumericEditBoxFactory()) }, Padding = new Thickness(0, 3f) }); ExpandableContent.AddNode(new Widget { Layout = new HBoxLayout { Spacing = 10f }, Nodes = { new ThemedSimpleText { Text = nameof(GradientControlPoint.Color), MinWidth = 150 }, (colorEditor = EditorParams.EditBoxFactory()) }, Padding = new Thickness(0, 3f) }); positionEditor.Step = 0.005f; colorEditor.Submitted += SetColor; positionEditor.Submitted += SetPosition; colorPanel = new ColorPickerPanel(); ExpandableContent.AddNode(colorPanel.Widget); var padding = colorPanel.Widget.Padding; padding.Right = 12; colorPanel.Widget.Padding = padding; colorPanel.DragStarted += () => EditorParams.History?.BeginTransaction(); gradientControlWidget.DragStarted += () => EditorParams.History?.BeginTransaction(); gradientControlWidget.DragEnded += () => { EditorParams.History?.CommitTransaction(); EditorParams.History?.EndTransaction(); }; colorPanel.DragEnded += () => { EditorParams.History?.CommitTransaction(); EditorParams.History?.EndTransaction(); }; colorPanel.Changed += () => { EditorParams.History?.RollbackTransaction(); Core.Operations.SetProperty.Perform(selectedControlPoint, nameof(GradientControlPoint.Color), colorPanel.Color); }; SelectPoint(selectedControlPoint); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.pnlMain = new System.Windows.Forms.Panel(); this.tbcCondition = new System.Windows.Forms.TabControl(); this.tbpCondition = new System.Windows.Forms.TabPage(); this.grbCondition = new System.Windows.Forms.GroupBox(); this.cmbFilterObjectValue = new System.Windows.Forms.ComboBox(); this.cmbFilterOperator = new System.Windows.Forms.ComboBox(); this.txtTextFilterValue = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.dtpDateTimeFilterValue = new System.Windows.Forms.DateTimePicker(); this.txtNumberFilterValue = new Janus.Windows.GridEX.EditControls.NumericEditBox(); this.tbpMultiSelectList = new System.Windows.Forms.TabPage(); this.grbMultiSelectList = new System.Windows.Forms.GroupBox(); this.label3 = new System.Windows.Forms.Label(); this.multiSelectList = new MultiSelectList(); this.txtFilterCondition2 = new System.Windows.Forms.TextBox(); this.btnCleanFilter = new System.Windows.Forms.Button(); this.btnRemoveCondition = new System.Windows.Forms.Button(); this.btnAddCondition = new System.Windows.Forms.Button(); this.grbLogicalOperator = new System.Windows.Forms.GroupBox(); this.rbtOr = new System.Windows.Forms.RadioButton(); this.rbtAnd = new System.Windows.Forms.RadioButton(); this.trvFilterCondition = new System.Windows.Forms.TreeView(); this.cmbColumn = new System.Windows.Forms.ComboBox(); this.lblFilterColumn = new System.Windows.Forms.Label(); this.btnAccept = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.pnlMain.SuspendLayout(); this.tbcCondition.SuspendLayout(); this.tbpCondition.SuspendLayout(); this.grbCondition.SuspendLayout(); this.tbpMultiSelectList.SuspendLayout(); this.grbMultiSelectList.SuspendLayout(); this.grbLogicalOperator.SuspendLayout(); this.SuspendLayout(); // // pnlMain // this.pnlMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.pnlMain.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.pnlMain.Controls.Add(this.tbcCondition); this.pnlMain.Controls.Add(this.txtFilterCondition2); this.pnlMain.Controls.Add(this.btnCleanFilter); this.pnlMain.Controls.Add(this.btnRemoveCondition); this.pnlMain.Controls.Add(this.btnAddCondition); this.pnlMain.Controls.Add(this.grbLogicalOperator); this.pnlMain.Controls.Add(this.trvFilterCondition); this.pnlMain.Controls.Add(this.cmbColumn); this.pnlMain.Controls.Add(this.lblFilterColumn); this.pnlMain.Location = new System.Drawing.Point(0, 0); this.pnlMain.Name = "pnlMain"; this.pnlMain.Size = new System.Drawing.Size(521, 360); this.pnlMain.TabIndex = 2; // // tbcCondition // this.tbcCondition.Controls.Add(this.tbpCondition); this.tbcCondition.Controls.Add(this.tbpMultiSelectList); this.tbcCondition.Location = new System.Drawing.Point(16, 48); this.tbcCondition.Name = "tbcCondition"; this.tbcCondition.SelectedIndex = 0; this.tbcCondition.Size = new System.Drawing.Size(344, 106); this.tbcCondition.TabIndex = 1; // // tbpCondition // this.tbpCondition.Controls.Add(this.grbCondition); this.tbpCondition.Location = new System.Drawing.Point(4, 22); this.tbpCondition.Name = "tbpCondition"; this.tbpCondition.Size = new System.Drawing.Size(336, 80); this.tbpCondition.TabIndex = 0; this.tbpCondition.Text = "Condición"; // // grbCondition // this.grbCondition.Controls.Add(this.cmbFilterObjectValue); this.grbCondition.Controls.Add(this.cmbFilterOperator); this.grbCondition.Controls.Add(this.txtTextFilterValue); this.grbCondition.Controls.Add(this.label2); this.grbCondition.Controls.Add(this.label1); this.grbCondition.Controls.Add(this.dtpDateTimeFilterValue); this.grbCondition.Controls.Add(this.txtNumberFilterValue); this.grbCondition.Location = new System.Drawing.Point(0, 0); this.grbCondition.Name = "grbCondition"; this.grbCondition.Size = new System.Drawing.Size(336, 80); this.grbCondition.TabIndex = 9; this.grbCondition.TabStop = false; // // cmbFilterObjectValue // this.cmbFilterObjectValue.Location = new System.Drawing.Point(96, 16); this.cmbFilterObjectValue.Name = "cmbFilterObjectValue"; this.cmbFilterObjectValue.Size = new System.Drawing.Size(232, 21); this.cmbFilterObjectValue.TabIndex = 2; this.cmbFilterObjectValue.DropDown += new System.EventHandler(this.cmbFilterObjectValue_DropDown); // // cmbFilterOperator // this.cmbFilterOperator.Location = new System.Drawing.Point(96, 49); this.cmbFilterOperator.Name = "cmbFilterOperator"; this.cmbFilterOperator.Size = new System.Drawing.Size(129, 21); this.cmbFilterOperator.TabIndex = 6; // // txtTextFilterValue // this.txtTextFilterValue.Location = new System.Drawing.Point(96, 16); this.txtTextFilterValue.Name = "txtTextFilterValue"; this.txtTextFilterValue.Size = new System.Drawing.Size(232, 20); this.txtTextFilterValue.TabIndex = 4; this.txtTextFilterValue.Text = ""; // // label2 // this.label2.Location = new System.Drawing.Point(16, 49); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(80, 23); this.label2.TabIndex = 11; this.label2.Text = "Criterio :"; // // label1 // this.label1.Location = new System.Drawing.Point(16, 17); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(80, 23); this.label1.TabIndex = 10; this.label1.Text = "Valor a Filtrar :"; // // dtpDateTimeFilterValue // this.dtpDateTimeFilterValue.Location = new System.Drawing.Point(96, 16); this.dtpDateTimeFilterValue.Name = "dtpDateTimeFilterValue"; this.dtpDateTimeFilterValue.Size = new System.Drawing.Size(232, 20); this.dtpDateTimeFilterValue.TabIndex = 5; this.dtpDateTimeFilterValue.Visible = false; // // txtNumberFilterValue // this.txtNumberFilterValue.AutoScrollMargin = new System.Drawing.Size(0, 0); this.txtNumberFilterValue.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.txtNumberFilterValue.Location = new System.Drawing.Point(96, 16); this.txtNumberFilterValue.Name = "txtNumberFilterValue"; this.txtNumberFilterValue.Size = new System.Drawing.Size(232, 20); this.txtNumberFilterValue.TabIndex = 3; this.txtNumberFilterValue.Text = "0"; this.txtNumberFilterValue.TextAlignment = Janus.Windows.GridEX.TextAlignment.Near; this.txtNumberFilterValue.ValueType = Janus.Windows.GridEX.NumericEditValueType.Int32; // // tbpMultiSelectList // this.tbpMultiSelectList.Controls.Add(this.grbMultiSelectList); this.tbpMultiSelectList.Location = new System.Drawing.Point(4, 22); this.tbpMultiSelectList.Name = "tbpMultiSelectList"; this.tbpMultiSelectList.Size = new System.Drawing.Size(336, 80); this.tbpMultiSelectList.TabIndex = 1; this.tbpMultiSelectList.Text = "Elegir de una Lista"; // // grbMultiSelectList // this.grbMultiSelectList.Controls.Add(this.label3); this.grbMultiSelectList.Controls.Add(this.multiSelectList); this.grbMultiSelectList.Location = new System.Drawing.Point(0, 0); this.grbMultiSelectList.Name = "grbMultiSelectList"; this.grbMultiSelectList.Size = new System.Drawing.Size(336, 80); this.grbMultiSelectList.TabIndex = 12; this.grbMultiSelectList.TabStop = false; // // label3 // this.label3.Location = new System.Drawing.Point(16, 17); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(80, 23); this.label3.TabIndex = 15; this.label3.Text = "Valores :"; // // multiSelectList // this.multiSelectList.Location = new System.Drawing.Point(96, 16); this.multiSelectList.MultipleItemsSelectedLegend = "[Varios]"; this.multiSelectList.Name = "multiSelectList"; this.multiSelectList.NoneItemsSelectedLegend = "[Ninguno]"; this.multiSelectList.Size = new System.Drawing.Size(232, 21); this.multiSelectList.TabIndex = 7; this.multiSelectList.OnBindRequired += new MultiSelectList.BindRequired(this.BindMultiSelectList); // // txtFilterCondition2 // this.txtFilterCondition2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtFilterCondition2.Location = new System.Drawing.Point(16, 296); this.txtFilterCondition2.Multiline = true; this.txtFilterCondition2.Name = "txtFilterCondition2"; this.txtFilterCondition2.ReadOnly = true; this.txtFilterCondition2.Size = new System.Drawing.Size(487, 56); this.txtFilterCondition2.TabIndex = 13; this.txtFilterCondition2.TabStop = false; this.txtFilterCondition2.Text = ""; // // btnCleanFilter // this.btnCleanFilter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnCleanFilter.Location = new System.Drawing.Point(368, 200); this.btnCleanFilter.Name = "btnCleanFilter"; this.btnCleanFilter.Size = new System.Drawing.Size(136, 30); this.btnCleanFilter.TabIndex = 12; this.btnCleanFilter.Text = "Quitar Todo"; this.btnCleanFilter.Click += new System.EventHandler(this.btnCleanFilter_Click); // // btnRemoveCondition // this.btnRemoveCondition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnRemoveCondition.Location = new System.Drawing.Point(368, 160); this.btnRemoveCondition.Name = "btnRemoveCondition"; this.btnRemoveCondition.Size = new System.Drawing.Size(136, 30); this.btnRemoveCondition.TabIndex = 11; this.btnRemoveCondition.Text = "Quitar"; this.btnRemoveCondition.Click += new System.EventHandler(this.btnRemoveCondition_Click); // // btnAddCondition // this.btnAddCondition.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnAddCondition.Location = new System.Drawing.Point(368, 120); this.btnAddCondition.Name = "btnAddCondition"; this.btnAddCondition.Size = new System.Drawing.Size(136, 30); this.btnAddCondition.TabIndex = 9; this.btnAddCondition.Text = "Agregar"; this.btnAddCondition.Click += new System.EventHandler(this.btnAddCondition_Click); // // grbLogicalOperator // this.grbLogicalOperator.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.grbLogicalOperator.Controls.Add(this.rbtOr); this.grbLogicalOperator.Controls.Add(this.rbtAnd); this.grbLogicalOperator.Location = new System.Drawing.Point(368, 70); this.grbLogicalOperator.Name = "grbLogicalOperator"; this.grbLogicalOperator.Size = new System.Drawing.Size(136, 42); this.grbLogicalOperator.TabIndex = 8; this.grbLogicalOperator.TabStop = false; // // rbtOr // this.rbtOr.Location = new System.Drawing.Point(88, 16); this.rbtOr.Name = "rbtOr"; this.rbtOr.Size = new System.Drawing.Size(40, 16); this.rbtOr.TabIndex = 1; this.rbtOr.Text = "OR"; // // rbtAnd // this.rbtAnd.Checked = true; this.rbtAnd.Location = new System.Drawing.Point(8, 16); this.rbtAnd.Name = "rbtAnd"; this.rbtAnd.Size = new System.Drawing.Size(56, 16); this.rbtAnd.TabIndex = 0; this.rbtAnd.TabStop = true; this.rbtAnd.Text = "AND"; // // trvFilterCondition // this.trvFilterCondition.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.trvFilterCondition.ImageIndex = -1; this.trvFilterCondition.Location = new System.Drawing.Point(16, 160); this.trvFilterCondition.Name = "trvFilterCondition"; this.trvFilterCondition.SelectedImageIndex = -1; this.trvFilterCondition.Size = new System.Drawing.Size(344, 128); this.trvFilterCondition.TabIndex = 10; // // cmbColumn // this.cmbColumn.Location = new System.Drawing.Point(120, 8); this.cmbColumn.Name = "cmbColumn"; this.cmbColumn.Size = new System.Drawing.Size(232, 21); this.cmbColumn.TabIndex = 0; this.cmbColumn.SelectedIndexChanged += new System.EventHandler(this.cmbColumn_SelectedIndexChanged); // // lblFilterColumn // this.lblFilterColumn.Location = new System.Drawing.Point(40, 8); this.lblFilterColumn.Name = "lblFilterColumn"; this.lblFilterColumn.Size = new System.Drawing.Size(72, 23); this.lblFilterColumn.TabIndex = 2; this.lblFilterColumn.Text = "Filtrar por :"; this.lblFilterColumn.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // btnAccept // this.btnAccept.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnAccept.Location = new System.Drawing.Point(8, 368); this.btnAccept.Name = "btnAccept"; this.btnAccept.TabIndex = 14; this.btnAccept.Text = "Aceptar"; this.btnAccept.Click += new System.EventHandler(this.btnAccept_Click); // // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(438, 368); this.btnCancel.Name = "btnCancel"; this.btnCancel.TabIndex = 15; this.btnCancel.Text = "Cancelar"; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // GridFilterForm // this.AcceptButton = this.btnAccept; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(522, 399); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnAccept); this.Controls.Add(this.pnlMain); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "GridFilterForm"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Definir Filtro"; this.pnlMain.ResumeLayout(false); this.tbcCondition.ResumeLayout(false); this.tbpCondition.ResumeLayout(false); this.grbCondition.ResumeLayout(false); this.tbpMultiSelectList.ResumeLayout(false); this.grbMultiSelectList.ResumeLayout(false); this.grbLogicalOperator.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.btnFind = new System.Windows.Forms.Button(); this.cmbFindOperator = new System.Windows.Forms.ComboBox(); this.txtTextFindValue = new System.Windows.Forms.TextBox(); this.lblFindCriteria = new System.Windows.Forms.Label(); this.lblFindValue = new System.Windows.Forms.Label(); this.dtpDateTimeFindValue = new System.Windows.Forms.DateTimePicker(); this.txtNumberFindValue = new Janus.Windows.GridEX.EditControls.NumericEditBox(); this.cmbFindColumn = new System.Windows.Forms.ComboBox(); this.lblFindColumn = new System.Windows.Forms.Label(); this.cmbFindObjectValue = new System.Windows.Forms.ComboBox(); this.SuspendLayout(); // // btnFind // this.btnFind.Location = new System.Drawing.Point(376, 72); this.btnFind.Name = "btnFind"; this.btnFind.TabIndex = 23; this.btnFind.Text = "Buscar"; this.btnFind.Click += new System.EventHandler(this.btnFind_Click); // // cmbFindOperator // this.cmbFindOperator.ItemHeight = 13; this.cmbFindOperator.Location = new System.Drawing.Point(128, 40); this.cmbFindOperator.Name = "cmbFindOperator"; this.cmbFindOperator.Size = new System.Drawing.Size(153, 21); this.cmbFindOperator.TabIndex = 19; // // txtTextFindValue // this.txtTextFindValue.Location = new System.Drawing.Point(128, 72); this.txtTextFindValue.Name = "txtTextFindValue"; this.txtTextFindValue.Size = new System.Drawing.Size(216, 20); this.txtTextFindValue.TabIndex = 20; this.txtTextFindValue.Text = ""; // // lblFindCriteria // this.lblFindCriteria.Location = new System.Drawing.Point(24, 40); this.lblFindCriteria.Name = "lblFindCriteria"; this.lblFindCriteria.TabIndex = 26; this.lblFindCriteria.Text = "Criterio :"; // // lblFindValue // this.lblFindValue.Location = new System.Drawing.Point(24, 72); this.lblFindValue.Name = "lblFindValue"; this.lblFindValue.TabIndex = 25; this.lblFindValue.Text = "Valor a Buscar :"; // // dtpDateTimeFindValue // this.dtpDateTimeFindValue.Location = new System.Drawing.Point(128, 72); this.dtpDateTimeFindValue.Name = "dtpDateTimeFindValue"; this.dtpDateTimeFindValue.Size = new System.Drawing.Size(216, 20); this.dtpDateTimeFindValue.TabIndex = 22; this.dtpDateTimeFindValue.Visible = false; // // txtNumberFindValue // this.txtNumberFindValue.AutoScrollMargin = new System.Drawing.Size(0, 0); this.txtNumberFindValue.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.txtNumberFindValue.Location = new System.Drawing.Point(128, 72); this.txtNumberFindValue.Name = "txtNumberFindValue"; this.txtNumberFindValue.Size = new System.Drawing.Size(216, 20); this.txtNumberFindValue.TabIndex = 21; this.txtNumberFindValue.Text = "0"; this.txtNumberFindValue.TextAlignment = Janus.Windows.GridEX.TextAlignment.Near; this.txtNumberFindValue.ValueType = Janus.Windows.GridEX.NumericEditValueType.Int32; // // cmbFindColumn // this.cmbFindColumn.Location = new System.Drawing.Point(128, 8); this.cmbFindColumn.Name = "cmbFindColumn"; this.cmbFindColumn.Size = new System.Drawing.Size(216, 21); this.cmbFindColumn.TabIndex = 18; this.cmbFindColumn.SelectedIndexChanged += new System.EventHandler(this.cmbFindColumn_SelectedIndexChanged); // // lblFindColumn // this.lblFindColumn.Location = new System.Drawing.Point(24, 8); this.lblFindColumn.Name = "lblFindColumn"; this.lblFindColumn.TabIndex = 24; this.lblFindColumn.Text = "Buscar por :"; this.lblFindColumn.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // cmbFindObjectValue // this.cmbFindObjectValue.Location = new System.Drawing.Point(128, 72); this.cmbFindObjectValue.Name = "cmbFindObjectValue"; this.cmbFindObjectValue.Size = new System.Drawing.Size(216, 21); this.cmbFindObjectValue.TabIndex = 27; // // GridFindToolbox // this.Controls.Add(this.cmbFindObjectValue); this.Controls.Add(this.btnFind); this.Controls.Add(this.cmbFindOperator); this.Controls.Add(this.txtTextFindValue); this.Controls.Add(this.lblFindCriteria); this.Controls.Add(this.lblFindValue); this.Controls.Add(this.dtpDateTimeFindValue); this.Controls.Add(this.txtNumberFindValue); this.Controls.Add(this.cmbFindColumn); this.Controls.Add(this.lblFindColumn); this.Name = "GridFindToolbox"; this.Size = new System.Drawing.Size(472, 104); this.ResumeLayout(false); }