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(); } }
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(); } }
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(); } }
}// 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
// 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(); }