Exemple #1
0
 private Credentials EngineOnCredentialsCallback(string title)
 {
     using (var cw = new CredentialsWindow(title))
     {
         if (cw.ShowDialog(this) == DialogResult.OK)
         {
             return(cw.GetCredentials());
         }
         throw new TaskCanceledException("User canceled the login operation.");
     }
 }
Exemple #2
0
 private Credentials EngineOnCredentialsCallback(string title)
 {
     using (var cw = new CredentialsWindow(title))
     {
         if (cw.ShowDialog(this) == DialogResult.OK)
         {
             return cw.GetCredentials();
         }
         throw new TaskCanceledException("User canceled the login operation.");
     }
 }