Esempio n. 1
0
        private void contenedor_Load(object sender, EventArgs e)
        {
            Conexion.DSN = "prueba2";
            MdiClient Chld;

            inv_ini = null;
            //  rep_movs = null;
            np     = null;
            cat    = null;
            fm     = null;
            mar    = null;
            rstck  = null;
            bod    = null;
            fl     = null;
            gr     = null;
            dm     = null;
            dbp    = null;
            fmu    = null;
            mem    = null;
            mov    = null;
            devc   = null;
            doc    = null;
            exbod  = null;
            fac    = null;
            kar    = null;
            his    = null;
            crearu = null;
            app    = null;
            edi    = null;
            camb   = null;
            modap  = null;
            desh   = null;
            asper  = null;
            edper  = null;
            elper  = null;
            repcom = null;


            foreach (Control crtl in this.Controls)
            {
                try
                {
                    Chld           = (MdiClient)crtl;
                    Chld.BackColor = this.BackColor;
                }
                catch (InvalidCastException exe)
                { }
            }



            if (inv_ini == null)
            {
                inv_ini           = new FormInventarioInicio();
                inv_ini.MdiParent = this;

                inv_ini.FormClosed += new FormClosedEventHandler(FormInventarioInicio_FormCLosed);
                inv_ini.Show();
            }
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            FormInventarioInicio fi = new FormInventarioInicio();

            fi.Show();
            this.Hide();
        }
Esempio n. 3
0
        private void listadoDeProductosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (inv_ini == null)
            {
                inv_ini           = new FormInventarioInicio();
                inv_ini.MdiParent = this;

                inv_ini.FormClosed += new FormClosedEventHandler(FormInventarioInicio_FormCLosed);
                inv_ini.Show();
            }
        }
Esempio n. 4
0
        private void btn_nuevoprod_Click(object sender, EventArgs e)
        {
            //FormNuevoProducto np = new FormNuevoProducto();
            //np.Show();
            //if (np == null)
            //{
            //    np = new FormNuevoProducto();
            //    np.MdiParent = this;

            //    np.FormClosed += new FormClosedEventHandler(FormNuevoProducto_formclosed);
            //    np.Show();
            //}

            if (inv_ini == null)
            {
                inv_ini           = new FormInventarioInicio();
                inv_ini.MdiParent = this;

                inv_ini.FormClosed += new FormClosedEventHandler(FormInventarioInicio_FormCLosed);
                inv_ini.Show();
            }
        }
Esempio n. 5
0
 private void FormInventarioInicio_FormCLosed(object sender, FormClosedEventArgs e)
 {
     inv_ini = null;
 }