예제 #1
0
 private void transactionBtn_Click(object sender, EventArgs e)
 {
     if (!MainPanel.Controls.Contains(Transaction.Instance))
     {
         MainPanel.Controls.Add(Transaction.Instance);
         Transaction.Instance.Dock = DockStyle.Fill;
         Transaction.Instance.BringToFront();
         SPan_timer.Start();
     }
     else
     {
         Transaction.Instance.BringToFront();
         SPan_timer.Start();
     }
 }
예제 #2
0
 private void productsBtn_Click(object sender, EventArgs e)
 {
     if (!MainPanel.Controls.Contains(Products.Instance))
     {
         MainPanel.Controls.Add(Products.Instance);
         Products.Instance.Dock = DockStyle.Fill;
         Products.Instance.BringToFront();
         SPan_timer.Start();
     }
     else
     {
         Products.Instance.BringToFront();
         SPan_timer.Start();
     }
 }
예제 #3
0
 private void inventoryBtn_Click(object sender, EventArgs e)
 {
     if (!MainPanel.Controls.Contains(Inventory.Instance))
     {
         MainPanel.Controls.Add(Inventory.Instance);
         Inventory.Instance.Dock = DockStyle.Fill;
         Inventory.Instance.BringToFront();
         SPan_timer.Start();
     }
     else
     {
         Inventory.Instance.BringToFront();
         SPan_timer.Start();
     }
 }
예제 #4
0
        }// end_of sPan_timer

        // this will bring userlogin front of the Main Panel
        private void userBtn_Click(object sender, EventArgs e)
        {
            if (!MainPanel.Controls.Contains(UserLogin.Instance))
            {
                MainPanel.Controls.Add(UserLogin.Instance);
                UserLogin.Instance.Dock = DockStyle.Fill;
                UserLogin.Instance.BringToFront();
                SPan_timer.Start();
            }
            else
            {
                UserLogin.Instance.BringToFront();
                SPan_timer.Start();
            }
        }// end of userBtn_Click
예제 #5
0
 // calling timer in the button, bcoz timer holds the requited -
 // Animation for slider animation
 private void humMenuLeftBtn_Click(object sender, EventArgs e)
 {
     SPan_timer.Start();
 }