private void buttonOk_Click(object sender, System.EventArgs e) { this.DialogResult = DialogResult.OK; this.Close(); }