private void nuevaCitaToolStripMenuItem_Click(object sender, EventArgs e) { ReservationForm.action = 1; ReservationForm rf = new ReservationForm(); rf.ShowDialog(); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString() != "") { ReservationForm.action = 2; ReservationForm.id = int.Parse(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString()); ReservationForm p = new ReservationForm(); p.ShowDialog(); } }