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();
     }
 }
Ejemplo n.º 3
0
 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();
     }
 }
Ejemplo n.º 4
0
 private void nuevaCitaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ReservationForm.action = 1;
     ReservationForm rf = new ReservationForm();
     rf.ShowDialog();
 }