public static FormRequisicion GetInstancia()
 {
     if (_Instancia == null)
     {
         _Instancia = new FormRequisicion();
     }
     return(_Instancia);
 }
        private void DashBoard_KeyUp(object sender, KeyEventArgs e)
        {
            if (Convert.ToInt32(e.KeyData) == Convert.ToInt32(Keys.Control) + Convert.ToInt32(Keys.N))
            {
                Productos.FormProductos agregar = new Productos.FormProductos("Agregar");
                agregar.MdiParent = this;
                agregar.Show();
            }

            if (Convert.ToInt32(e.KeyData) == Convert.ToInt32(Keys.Control) + Convert.ToInt32(Keys.Shift) + Convert.ToInt32(Keys.L))
            {
                ConfigGenerales.FormAgregar agregar = new ConfigGenerales.FormAgregar("Linea", "Agregar");
                agregar.ShowDialog();
            }
            if (Convert.ToInt32(e.KeyData) == Convert.ToInt32(Keys.Control) + Convert.ToInt32(Keys.Shift) + Convert.ToInt32(Keys.S))
            {
                ConfigGenerales.FormAgregar agregar = new ConfigGenerales.FormAgregar("Sub linea", "Agregar");
                agregar.ShowDialog();
            }
            if (Convert.ToInt32(e.KeyData) == Convert.ToInt32(Keys.Control) + Convert.ToInt32(Keys.Shift) + Convert.ToInt32(Keys.M))
            {
                ConfigGenerales.FormAgregar agregar = new ConfigGenerales.FormAgregar("Marca", "Agregar");
                agregar.ShowDialog();
            }
            if (Convert.ToInt32(e.KeyData) == Convert.ToInt32(Keys.Control) + Convert.ToInt32(Keys.Shift) + Convert.ToInt32(Keys.B))
            {
                ConfigGenerales.FormAgregar agregar = new ConfigGenerales.FormAgregar("Bodega", "Agregar");
                agregar.ShowDialog();
            }
            if (Convert.ToInt32(e.KeyData) == Convert.ToInt32(Keys.Control) + Convert.ToInt32(Keys.Shift) + Convert.ToInt32(Keys.R))
            {
                Requisicioes.FormRequisicion requisiciones = Requisicioes.FormRequisicion.GetInstancia();
                requisiciones.MdiParent = this;
                requisiciones.Show();
            }
            if (Convert.ToInt32(e.KeyData) == Convert.ToInt32(Keys.Control) + Convert.ToInt32(Keys.Shift) + Convert.ToInt32(Keys.O))
            {
                GenerarOrdenCompra.FormGenerarOrdenCompra orden = GenerarOrdenCompra.FormGenerarOrdenCompra.GetInstacnia();
                orden.MdiParent = this;
                orden.Show();
            }
        }
 private void FormRequisicion_FormClosing(object sender, FormClosingEventArgs e)
 {
     _Instancia = null;
 }
 private void barButtonItemRequisicion_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     Requisicioes.FormRequisicion requisiciones = Requisicioes.FormRequisicion.GetInstancia();
     requisiciones.MdiParent = this;
     requisiciones.Show();
 }