Пример #1
0
        private void pacientesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form formulario in this.MdiChildren)
            {
                if (formulario == objListarPaciente)
                {
                    formulario.Show();
                }
                else
                {
                    formulario.Hide();
                }
            }

            objListarPaciente.MdiParent = this;
            objListarPaciente.Show();
        }
Пример #2
0
        private void pictureBox9_Click_1(object sender, EventArgs e)
        {
            frmListarPacientes objFrmListarPacientes = new frmListarPacientes();

            objFrmListarPacientes.MdiParent = this.MdiParent;
            this.Hide();
            objFrmListarPacientes.Show();
        }