Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            RegistroPacientes rp = new RegistroPacientes(int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString()), 1);

            rp.Owner     = this;
            rp.MdiParent = this.MdiParent;

            rp.Show();
        }
Exemple #2
0
 private void agregarToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (RegistroPacientes.DefInstance == null)
     {
         RegistroPacientes rp = new RegistroPacientes();
         rp.MdiParent = this;
         RegistroPacientes.DefInstance = rp;
         rp.Show();
     }
     else
     {
         RegistroPacientes.DefInstance.Show();
         RegistroPacientes.DefInstance.Focus();
     }
 }
Exemple #3
0
        private void button5_Click(object sender, EventArgs e)
        {
            RegistroPacientes rp = new RegistroPacientes();

            rp.Show();
        }
Exemple #4
0
 private void RegistroPacientes_FormClosing(object sender, FormClosingEventArgs e)
 {
     defInstance = null;
 }