Ejemplo n.º 1
0
        private void ingresoFacturaProveedoresToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form frmC = Application.OpenForms.Cast <Form>().FirstOrDefault(x => x is Frm_BusquedaOrdenCompra);

            if (ventanaFactura == false || frmC == null)
            {
                if (frmC == null)
                {
                    facturaP = new Frm_BusquedaOrdenCompra(susuario);
                }

                facturaP.MdiParent = this;
                facturaP.Show();
                Application.DoEvents();
                ventanaFactura = true;
            }
            else
            {
                facturaP.WindowState = System.Windows.Forms.FormWindowState.Normal;
            }
        }
Ejemplo n.º 2
0
        private void movimientosDeInventarioToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form frmC = Application.OpenForms.Cast <Form>().FirstOrDefault(x => x is Frm_ListaMovInv);

            if (movimientoInventario == false || frmC == null)
            {
                if (frmC == null)
                {
                    facturaP = new Frm_BusquedaOrdenCompra(susuario);
                }

                movInv.MdiParent = this;
                movInv.Show();
                Application.DoEvents();
                movimientoInventario = true;
            }
            else
            {
                movInv.WindowState = System.Windows.Forms.FormWindowState.Normal;
            }
        }