예제 #1
0
 private void Form_KeyDataReceived(object sender, PIVAsCommon.PivasEventArgs <string> e)
 {
     txt_pwd.SafeAction(() =>
     {
         this.txt_pwd.Text = txt_pwd.Text + e.Value.Trim();
     });
 }
예제 #2
0
 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);
         }
     });
 }