Exemple #1
0
        private void proveedoresToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Frm_Proveedores frm = new Frm_Proveedores();

            frm.MdiParent = this;
            frm.Show();
        }
Exemple #2
0
        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;
            }
        }
Exemple #3
0
        private void proveedoresToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_Proveedores nuevo = new Frm_Proveedores();

            nuevo.ShowDialog();
        }