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."); } }
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."); } }