Пример #1
0
 private void Btn_Table_Click(object sender, EventArgs e)
 {
     Panel_Main.Visible = false;
     _EventBtn.DisableClickButton();
     _EventBtn.ClickBtn = (IconButton)sender;
     _EventBtn.ActivateButton(sender);
     EventButton.OpenchildForm(_FormTable, Panel_Main);
     Panel_Main.Visible = true;
 }
Пример #2
0
 public void Btn_Foods_Click(object sender, EventArgs e)
 {
     Panel_Main.Visible = false;
     _EventBtn.DisableClickButton();
     _EventBtn.ClickBtn = (IconButton)sender;
     _EventBtn.ActivateButton(sender);
     EventButton.OpenchildForm(new FormFood(), Panel_Menu);
     EventButton.OpenchildForm(_FormAdd, Panel_Add);
     Panel_Main.Visible = true;
 }
Пример #3
0
 private void Btn_Revenue_Click(object sender, EventArgs e)
 {
     Panel_Main.Visible = false;
     if (UserCache.permission == 0)
     {
         MessageBox.Show("Dành cho Admin");
     }
     else
     {
         _EventBtn.DisableClickButton();
         _EventBtn.ClickBtn = (IconButton)sender;
         _EventBtn.ActivateButton(sender);
         EventButton.OpenchildForm(new FormRevenue(), Panel_Main);
     }
     Panel_Main.Visible = true;
 }