Beispiel #1
0
        private void btnAltaPaciente_Click(object sender, EventArgs e)
        {
            /*foreach (Form Ariel in Application.OpenForms)
             * {
             *   if (Ariel.GetType() == typeof(frmAltaPaciente))
             *   {
             *       MessageBox.Show("Ya está abierta...");
             *       return;
             *   }
             * }
             * frmAltaPaciente AltaPte = new frmAltaPaciente();
             * AltaPte.MdiParent = frmPrincipal;
             * AltaPte.WindowState = FormWindowState.Maximized;
             * AltaPte.Show();*/

            frmAltaPaciente AltaPte = new frmAltaPaciente();

            AltaPte.ShowDialog();
        }
Beispiel #2
0
        private void btnAltaPersona_Click(object sender, EventArgs e)
        {
            frmAltaPaciente alta = new frmAltaPaciente(true);

            alta.ShowDialog();
        }