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(); }
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(); } }
private void button5_Click(object sender, EventArgs e) { RegistroPacientes rp = new RegistroPacientes(); rp.Show(); }
private void RegistroPacientes_FormClosing(object sender, FormClosingEventArgs e) { defInstance = null; }