private void SetControl() { this.widget.SetValue((System.Action)(() => { this.sizeValue = (SizeValue)this._propertyItem.PropertyData.GetValue(this._propertyItem.Instance, (object[])null); this.widget.SetControl(this.sizeValue.Width, this.sizeValue.Height); })); }
private void SetControl() { this.widget.SetValue(delegate { this.sizeValue = (SizeValue)this._propertyItem.PropertyData.GetValue(this._propertyItem.Instance, null); this.widget.SetControl(this.sizeValue.Width, this.sizeValue.Height); }); }
private void SetControl() { this.widget.SetValue(delegate { this.sizeValue = (SizeValue)this._propertyItem.PropertyData.GetValue(this._propertyItem.Instance, null); this.widget.SetXValue((double)this.sizeValue.Width, 0.0, false); this.widget.SetYValue((double)this.sizeValue.Height, 0.0, false); }); }
public Widget ResolveEditor(PropertyItem item = null) { this.sizeValue = (SizeValue)this._propertyItem.PropertyData.GetValue(this._propertyItem.Instance, (object[])null); this.widget = new PointEditorWidget(false); this.widget.SetLabel(LanguageInfo.NewFile_Width, LanguageInfo.NewFile_Height); this.widget.SetMenuVisble(false); this.SetControl(); this.widget.PointX += new EventHandler <PointEvent>(this.widget_PointX); this.widget.PointY += new EventHandler <PointEvent>(this.widget_PointY); return((Widget)this.widget); }
public Widget ResolveEditor(PropertyItem item = null) { this.widget = new EntryComBoxEditorWidget(); this.sizeValue = (SizeValue)this._propertyItem.PropertyData.GetValue(this._propertyItem.Instance, (object[])null); this.SetControl(); this.widget.Init(); if (this._propertyItem.ValueRangeDescriptor != null) { this.widget.SetMaxMin(this._propertyItem.ValueRangeDescriptor.MaxValue, this._propertyItem.ValueRangeDescriptor.MinValue); } this.widget.ValueChanged += new EventHandler <EntryComboxEvent>(this.widget_ValueChanged); return((Widget)this.widget); }
private void widget_ValueChanged(object sender, EntryComboxEvent e) { this.UpDateData((System.Action)(() => { this.sizeValue = (SizeValue)this._propertyItem.PropertyData.GetValue(this._propertyItem.Instance, (object[])null); if (e.Type == 0) { this.sizeValue.Width = e.EntryValue; } else { this.sizeValue.Height = e.EntryValue; } this._propertyItem.SetValue(this._propertyItem.Instance, (object)this.sizeValue, (object[])null); })); }
private void SetControl() { SizeValue sizeValue = (SizeValue)this._propertyItem.PropertyData.GetValue(this._propertyItem.Instance, (object[])null); this.widget.Text = string.Format(" {0}{2} * {1}{2}", (object)sizeValue.Width, (object)sizeValue.Height, (object)LanguageInfo.NewFile_Pixel); }