private void ClearConnectingState() { _loginButton.Enabled = true; _cancelButton.Enabled = true; this.Cursor = Cursors.Default; this.Text = Env.Strings.GetString("Form.SSHShortcutLoginDialog.Text"); _connector = null; }
private void OnOK(object sender, System.EventArgs e) { this.DialogResult = DialogResult.None; if (ValidateContent() == null) { return; //パラメータに誤りがあれば即脱出 } _loginButton.Enabled = false; _cancelButton.Enabled = false; this.Cursor = Cursors.WaitCursor; this.Text = Env.Strings.GetString("Caption.SSHShortcutLoginDialog.Connecting"); //HostKeyChecker checker = new HostKeyChecker(this, param); _savedHWND = this.Handle; _connector = ConnectionManager.StartNewConnection(this, _profile, _passphraseBox.Text, null /*new HostKeyCheckCallback(checker.CheckHostKeyCallback)*/); if (_connector == null) { ClearConnectingState(); } }
public void OnOK(object sender, System.EventArgs e) { this.DialogResult = DialogResult.None; if (ValidateContent() == null) return; //パラメータに誤りがあれば即脱出 _loginButton.Enabled = false; _cancelButton.Enabled = false; this.Cursor = Cursors.WaitCursor; this.Text = Env.Strings.GetString("Caption.SSHShortcutLoginDialog.Connecting"); //HostKeyChecker checker = new HostKeyChecker(this, param); _savedHWND = this.Handle; _connector = ConnectionManager.StartNewConnection(this, _profile, _passphraseBox.Text, null/*new HostKeyCheckCallback(checker.CheckHostKeyCallback)*/); if (_connector == null) ClearConnectingState(); }