private void MenuDateApointment_Click(object sender, EventArgs e) { RegistrationUpdate rs = new RegistrationUpdate(int.Parse(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()), 0); rs.ShowDialog(); LoadDefault(); }
private void MenuUpdateRegistration_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count <= 0) { return; } RegistrationUpdate rp = new RegistrationUpdate(int.Parse(dataGridView1.SelectedRows[0].Cells[0].Value.ToString())); rp.ShowDialog(); LoadDefault(); }