private void bunifuCheckbox_VIPChecker_Click(object sender, EventArgs e) { VIPManager vipmanager = new VIPManager(); if (!vipmanager.IsVIP(bunifuCustomTextbox_VIP.Text)) { ErrorManager.MessageDisplay("Incorrect VIP ID", "", "Incorrect info. Plese recheck."); bunifuCheckbox_VIPChecker.Checked = false; } else { UpdateTotalPayment(0); bunifuCheckbox_VIPChecker.Enabled = false; bunifuCustomTextbox_VIP.Enabled = false; } }
private void Load(string cmd) { ThreadManager.DisplayLoadingScreen(); manager = new VIPManager(); switch (cmd) { case "Add": LoadAddForm(); break; case "Update": LoadUpdateForm(); break; case "View": LoadViewForm(); break; } LoadTheme(); LoadLanguage(); LoadRecommendData(); ThreadManager.CloseLoadingScreen(); }
private List <object> executeSearch() { // Dummy init ErrorManager.MessageDisplay("This function is not implemented", "", "Sorry. We haven't implement this function (yet)" + Environment.NewLine + "Sorry for the inconvinient"); return(null); List <object> res = new List <object>(); string searchPharse1 = bunifuCustomTextbox_Filter_1.Text; string searchPharse2 = bunifuCustomTextbox_Filter_2.Text; string searchPharse3 = bunifuCustomTextbox_Filter_3.Text; string type1 = bunifuDropdown_Category_1.selectedValue; string type2 = bunifuDropdown_Category_2.selectedValue; string type3 = bunifuDropdown_Category_3.selectedValue; string searchConstraint1 = bunifuDropdown_Connector_1.selectedValue; string searchConstraint2 = bunifuDropdown_Connector_2.selectedValue; switch (strFeature) { case "Order": OrderManager orderManager = new OrderManager(); res = orderManager.SearchOrder(searchPharse1, type1, searchPharse2, type2, searchPharse3, type3, searchConstraint1, searchConstraint2); break; case "Menu": FoodManager menuManager = new FoodManager(); res = menuManager.SearchFood(searchPharse1, type1, searchPharse2, type2, searchPharse3, type3, searchConstraint1, searchConstraint2); break; case "Book": BookManager bookManager = new BookManager(); res = bookManager.SearchBook(searchPharse1, type1, searchPharse2, type2, searchPharse3, type3, searchConstraint1, searchConstraint2); break; case "VIP": VIPManager vipManager = new VIPManager(); res = vipManager.SearchVip(searchPharse1, type1, searchPharse2, type2, searchPharse3, type3, searchConstraint1, searchConstraint2);; break; case "Staff": StaffManager staffManager = new StaffManager(); res = staffManager.SearchStaff(searchPharse1, type1, searchPharse2, type2, searchPharse3, type3, searchConstraint1, searchConstraint2); break; case "Stock": StockManager stockManager = new StockManager(); res = stockManager.SearchOrder(searchPharse1, type1, searchPharse2, type2, searchPharse3, type3, searchConstraint1, searchConstraint2); break; case "History": OrderManager transactionManager = new OrderManager(); res = transactionManager.SearchTransaction(searchPharse1, type1, searchPharse2, type2, searchPharse3, type3, searchConstraint1, searchConstraint2); break; case "Wishlist": BookManager wishlistManager = new BookManager(); res = wishlistManager.SearchWishList(searchPharse1, type1, searchPharse2, type2, searchPharse3, type3, searchConstraint1, searchConstraint2); break; } return(res); }