Ejemplo n.º 1
0
 private void panel14_MouseEnter(object sender, EventArgs e)
 {
     if (labelProducts != null && f3 != null)
     {
         labelProducts.Close();
         f3.Close();
         labelProducts = null;
         f3            = null;
         freeMemory();
     }
     if (f4 == null)
     {
         f4 = new Form();
         f4.StartPosition   = FormStartPosition.Manual;
         f4.FormBorderStyle = FormBorderStyle.None;
         f4.ShowInTaskbar   = false;
         f4.BackColor       = Color.Black;
         f4.Opacity         = 0f;
         f4.Location        = new Point(CheckClass.location.X, CheckClass.location.Y + 236);
         f4.AutoSize        = false;
         f4.Size            = new Size(188, 68);
         labelBills         = new lbBills();
         f4.Show();
         labelBills.ShowInTaskbar = false;
         labelBills.AutoSize      = false;
         labelBills.Owner         = f4;
         labelBills.Location      = new Point(CheckClass.location.X + 98, CheckClass.location.Y + 250);
         labelBills.Show();
     }
 }
Ejemplo n.º 2
0
 private void panel11_MouseEnter(object sender, EventArgs e)
 {
     if (labelUsers != null && f2 != null)
     {
         labelUsers.Close();
         f2.Close();
         labelUsers = null;
         f2         = null;
         freeMemory();
     }
     if (labelBills != null && f4 != null)
     {
         labelBills.Close();
         f4.Close();
         labelBills = null;
         f4         = null;
         freeMemory();
     }
     if (f3 == null)
     {
         f3 = new Form();
         f3.StartPosition            = FormStartPosition.Manual;
         f3.FormBorderStyle          = FormBorderStyle.None;
         f3.ShowInTaskbar            = false;
         f3.BackColor                = Color.Black;
         f3.Opacity                  = 0f;
         f3.Location                 = new Point(CheckClass.location.X, CheckClass.location.Y + 168);
         f3.AutoSize                 = false;
         f3.Size                     = new Size(196, 68);
         labelProducts               = new lbProducts();
         labelProducts.ShowInTaskbar = false;
         labelProducts.AutoSize      = false;
         labelProducts.Owner         = f3;
         labelProducts.Location      = new Point(CheckClass.location.X + 98, CheckClass.location.Y + 182);
         labelProducts.Show();
     }
 }