コード例 #1
0
ファイル: GollumForm.cs プロジェクト: nodia/gollum
 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.");
     }
 }
コード例 #2
0
ファイル: GollumForm.cs プロジェクト: space035/gollum
 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.");
     }
 }