private void ButtonCreatePacient_Click(object sender, EventArgs e) { Form createPacientForm = new FormCreatePacient(this, "create"); Hide(); createPacientForm.Show(); createPacientForm.Enabled = true; }
private void ButtonUpdatePacient_Click(object sender, EventArgs e) { int row = dataGridViewFormAdministratorPacients.SelectedCells[0].RowIndex; int id = Convert.ToInt32(dataGridViewFormAdministratorPacients.Rows[row].Cells[0].Value); Form createPacientForm = new FormCreatePacient(this, "update", id); Hide(); createPacientForm.Show(); createPacientForm.Enabled = true; }