Exemple #1
0
 private void SetControl()
 {
     this.widget.SetValue((System.Action)(() =>
     {
         this.asValue = (AstrictLengthValue)this._propertyItem.PropertyData.GetValue(this._propertyItem.Instance, (object[])null);
         this.widget.SetControl(this.asValue.MaxLengthEnable, (double)this.asValue.MaxLengthText);
     }));
 }
Exemple #2
0
 private void SetControl()
 {
     this.widget.SetValue(delegate
     {
         this.asValue = (AstrictLengthValue)this._propertyItem.PropertyData.GetValue(this._propertyItem.Instance, null);
         this.widget.SetControl(this.asValue.MaxLengthEnable, (double)this.asValue.MaxLengthText);
     });
 }
Exemple #3
0
 public Widget ResolveEditor(PropertyItem item = null)
 {
     this.widget  = new AstrictLengthEditorWidget();
     this.asValue = (AstrictLengthValue)this._propertyItem.PropertyData.GetValue(this._propertyItem.Instance, (object[])null);
     if (this.asValue != (AstrictLengthValue)null)
     {
         this.widget.SetControl(this.asValue.MaxLengthEnable, (double)this.asValue.MaxLengthText);
     }
     this.widget.ValueCangede   += new EventHandler <BoolEvent>(this.widget_ValueCangede);
     this.widget.IsCheckChanged += new EventHandler <BoolEvent>(this.widget_IsCheckChanged);
     return((Widget)this.widget);
 }
 public bool Equals(AstrictLengthValue others)
 {
     return(!(others == (AstrictLengthValue)null) && (this.MaxLengthEnable == others.MaxLengthEnable && this.MaxLengthText == others.MaxLengthText));
 }