private void buttonAddPatient_Click(object sender, EventArgs e) { connects.InsertToTablePatients(photo, textBoxName.Text, dateBirthday.Value, textBoxAddress.Text, maskedTextBoxPhone.Text, textBoxEmail.Text, textBoxWork.Text); textBoxName.Text = ""; dateBirthday.Value = DateTime.Now; textBoxAddress.Text = ""; maskedTextBoxPhone.Text = ""; textBoxEmail.Text = ""; textBoxWork.Text = ""; Close(); }