Beispiel #1
0
 private void ShowPassword(string result)
 {
     if (InvokeRequired)
     {
         Invoke(new Action <string>(ShowPassword), result);
     }
     else
     {
         using (PasswordDisplayDialog dlg = new PasswordDisplayDialog()) {
             dlg.Password = result;
             dlg.ShowDialog(this);
         }
     }
 }
Beispiel #2
0
 private void ShowPassword(string result) {
   if (InvokeRequired) {
     Invoke(new Action<string>(ShowPassword), result);
   } else {
     using (PasswordDisplayDialog dlg = new PasswordDisplayDialog()) {
       dlg.Password = result;
       dlg.ShowDialog(this);
     }
   }
 }