private void button2_Click(object sender, EventArgs e) { if (textBox1.Text.Length > 0 && textBox2.Text.Length > 0) { if (prog.AddKvestRoom(textBox1.Text, usersValue, ageCategory, Convert.ToInt32(textBox2.Text))) { MessageBox.Show("Kvest-room was added succesfully!!!"); CleanItems(); } } else { MessageBox.Show("You shoud edit all rows. Try again!"); } }