private void proveedoresToolStripMenuItem1_Click(object sender, EventArgs e) { Frm_Proveedores frm = new Frm_Proveedores(); frm.MdiParent = this; frm.Show(); }
private void ProveedorToolStripMenuItem_Click(object sender, EventArgs e) { Form frmC = Application.OpenForms.Cast <Form>().FirstOrDefault(x => x is Frm_Proveedores); if (ventanaproveedores == false || frmC == null) { if (frmC == null) { proveedores = new Frm_Proveedores(); } proveedores.MdiParent = this; proveedores.Show(); Application.DoEvents(); ventanaproveedores = true; } else { proveedores.WindowState = System.Windows.Forms.FormWindowState.Normal; } }
private void proveedoresToolStripMenuItem_Click(object sender, EventArgs e) { Frm_Proveedores nuevo = new Frm_Proveedores(); nuevo.ShowDialog(); }