Ejemplo n.º 1
0
 public void SetControl()
 {
     this.widget.SetValue(delegate
     {
         this.passWordValue = (PasswordValue)this._propertyItem.PropertyData.GetValue(this._propertyItem.Instance, null);
         if (this.passWordValue != null)
         {
             this.widget.SetControl(this.passWordValue.PasswordEnable, this.passWordValue.PasswordStyleText);
         }
     });
 }
Ejemplo n.º 2
0
 public Widget ResolveEditor(PropertyItem item)
 {
     this.widget        = new PasswordEditorWidget();
     this.passWordValue = (PasswordValue)this._propertyItem.PropertyData.GetValue(this._propertyItem.Instance, null);
     if (this.passWordValue != null)
     {
         this.widget.SetControl(this.passWordValue.PasswordEnable, this.passWordValue.PasswordStyleText);
     }
     this.widget.TextCangede    += new EventHandler <BoolEvent>(this.widget_TextCangede);
     this.widget.IsCheckChanged += new EventHandler <BoolEvent>(this.widget_IsCheckChanged);
     return(this.widget);
 }
Ejemplo n.º 3
0
 public void SetControl()
 {
     this.widget.SetValue((System.Action)(() =>
     {
         this.passWordValue = (PasswordValue)this._propertyItem.PropertyData.GetValue(this._propertyItem.Instance, (object[])null);
         if (!(this.passWordValue != (PasswordValue)null))
         {
             return;
         }
         this.widget.SetControl(this.passWordValue.PasswordEnable, this.passWordValue.PasswordStyleText);
     }));
 }
Ejemplo n.º 4
0
 private void PasswordChoose(object sender, EventArgs e)
 {
     PasswordValue.UseSystemPasswordChar = true;
     PasswordValue.Clear();
 }
Ejemplo n.º 5
0
 public GridCellWrapper(PasswordValue passwordValue)
 {
     PasswordValue = passwordValue;
 }
Ejemplo n.º 6
0
 public bool Equals(PasswordValue others)
 {
     return(!(others == (PasswordValue)null) && (this.PasswordEnable == others.PasswordEnable && this.PasswordStyleText == others.PasswordStyleText));
 }