private void Form_KeyDataReceived(object sender, PIVAsCommon.PivasEventArgs <string> e) { txt_pwd.SafeAction(() => { this.txt_pwd.Text = txt_pwd.Text + e.Value.Trim(); }); }
private void Form_KeyDeleteReceived(object sender, PIVAsCommon.PivasEventArgs <string> e) { txt_pwd.SafeAction(() => { if (txt_pwd.Text.Length > 0) { txt_pwd.Text = txt_pwd.Text.Substring(0, txt_pwd.Text.Length - 1); } }); }