Exemple #1
0
 private void inventarioToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         if (isopenv & !isopen)
         {
             vf.Close();
             isopenv              = false;
             fc                   = new Forma_Consultas(nmbre, ids, ide, ida, nmbref);
             fc.MdiParent         = this;
             fc.groupCEmp.Visible = false; fc.groupCProd.Visible = false; fc.groupCProv.Visible = false; fc.groupCInv.Visible = true;
             fc.Show();
             isopen = true;
         }
         else if (isopen)
         {
             fc.groupCEmp.Visible = false; fc.groupCProd.Visible = false; fc.groupCProv.Visible = false; fc.groupCInv.Visible = true;
             fc.Update();
         }
         else
         {
             fc                   = new Forma_Consultas(nmbre, ids, ide, ida, nmbref);
             fc.MdiParent         = this;
             fc.groupCEmp.Visible = false; fc.groupCProd.Visible = false; fc.groupCProv.Visible = false; fc.groupCInv.Visible = true;
             fc.Show();
             isopen = true;
         }
     }
     catch { }
 }
Exemple #2
0
 private void empleadosToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!cisopen)
     {
         fc = new Forma_Consultas(nomb, idsuc, idemp, idal, nomfar);
         fc.groupCInv.Visible = false; fc.groupCProd.Visible = false; fc.groupCProv.Visible = false;
         fc.MdiParent         = this;
         fc.Show();
         fc.Focus();
         cisopen = true;
     }
     else
     {
         fc.groupCInv.Visible = false; fc.groupCProd.Visible = false; fc.groupCProv.Visible = false; fc.groupCEmp.Visible = true;
         fc.Update();
         fc.Focus();
     }
 }