private void FormNameChange_FormClosing(object sender, FormClosingEventArgs e) { if (e.CloseReason == CloseReason.UserClosing) { _result = NameChangeResult.Cancel; } }
private void btnUndoNameChange_Click(object sender, EventArgs e) { _result = NameChangeResult.SaveUndoNameChange; this.Hide(); }
private void btnCancel_Click(object sender, EventArgs e) { _result = NameChangeResult.Cancel; this.Hide(); }
private void btnNewConnection_Click(object sender, EventArgs e) { _result = NameChangeResult.SaveNewConnection; this.Hide(); }