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); } }); }
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); }
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); })); }
private void PasswordChoose(object sender, EventArgs e) { PasswordValue.UseSystemPasswordChar = true; PasswordValue.Clear(); }
public GridCellWrapper(PasswordValue passwordValue) { PasswordValue = passwordValue; }
public bool Equals(PasswordValue others) { return(!(others == (PasswordValue)null) && (this.PasswordEnable == others.PasswordEnable && this.PasswordStyleText == others.PasswordStyleText)); }