private void nuevoPacienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PacientForm.action = 1;
            PacientForm pf = new PacientForm();

            pf.ShowDialog();
        }
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString() != "") {
         PacientForm.action = 2;
         PacientForm.id = int.Parse(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString());
         PacientForm p = new PacientForm();
         p.ShowDialog();
         load();
     }
 }
Beispiel #3
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString() != "")
     {
         PacientForm.action = 2;
         PacientForm.id     = int.Parse(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString());
         PacientForm p = new PacientForm();
         p.ShowDialog();
         load();
     }
 }
Beispiel #4
0
 private void nuevoPacienteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     PacientForm.action = 1;
     PacientForm pf = new PacientForm();
     pf.ShowDialog();
 }