private void OKButton_Click(object sender, EventArgs e) { this.command = this.commandTextBox.Text; this.DialogResult = DialogResult.OK; }