Пример #1
0
        private void mttoTareasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form existe = Application.OpenForms.OfType <Form>().Where(pre => pre.Name == "FormTareasConfiguracion").SingleOrDefault <Form>();

            if (existe != null)
            {
                existe.WindowState = FormWindowState.Maximized;
                existe.BringToFront();
            }
            else
            {
                Presentacion.Tareas.FormTareasConfiguracion newMDIChild = new Presentacion.Tareas.FormTareasConfiguracion();
                newMDIChild.MdiParent   = this;
                newMDIChild.WindowState = FormWindowState.Maximized;
                newMDIChild.Show();
            }
        }
        private void buttonMantenimiento_Click(object sender, EventArgs e)
        {
            FormTareasConfiguracion nueva = new FormTareasConfiguracion(this);

            nueva.Show();
        }