private void button1_Click(object sender, EventArgs e) { if (Check()) { WorkWithBD.EditPlay(Id, comboBox1.Text, Convert.ToString(numericUpDown1.Value), comboBox2.Text, Convert.ToString(numericUpDown2.Value), comboBox3.Text, radioButton2.Checked, radioButton3.Checked, Convert.ToString(dateTimePicker1.Value)); this.Close(); } }