public void InvokeViewAllProductsCellContentClick() { if (LoginSignupView.LoginSingupAccountTypeID == 0) { if (MainPageView.TabControls.TabPages.Contains(MainPageView.BuyItemsPage) != true) { MainPageView.TabControls.TabPages.Add(MainPageView.BuyItemsPage); MainPageView.TabControls.SelectedTab = MainPageView.BuyItemsPage; } else { MainPageView.TabControls.TabPages.Remove(MainPageView.BuyItemsPage); MainPageView.TabControls.TabPages.Add(MainPageView.BuyItemsPage); MainPageView.TabControls.SelectedTab = MainPageView.BuyItemsPage; } BuyItemsPageView.BuyItemsPageConnectionString = LoginSignupView.LoginSingupConnectionString; BuyItemsPageView.BuyItemsPageSelectedDatarow = ViewAllProductsPageView.ViewAllProductsPageSelectedDatarow; BuyItemsPageView.BuyItemsPageProductCardNumberCombo.DataSource = MyAccountPageView.MyAccountPageDatatableOfCards; BuyItemsPagePresenter BuyItemsPresenter = new BuyItemsPagePresenter(BuyItemsPageView); BuyItemsPresenter.FetchProductInfo(); } //BuyItemsPresenter.FetchProductInfo(); }
public void BuyItem() { BuyItemsPageView.BuyItemsPageCustomerID = LoginSignupView.LoginSingupCustomerID; BuyItemsPagePresenter BuyItemsPresenter = new BuyItemsPagePresenter(BuyItemsPageView); BuyItemsPresenter.BuyItem(); MainPageView.TabControls.TabPages.Remove(MainPageView.BuyItemsPage); }
public void GetCardInfo() { BuyItemsPageView.BuyItemsPageProductQuantityTxB.Enabled = true; BuyItemsPageView.BuyItemsPageDatatableOfCards = MyAccountPageView.MyAccountPageDatatableOfCards; BuyItemsPagePresenter BuyItemsPresenter = new BuyItemsPagePresenter(BuyItemsPageView); BuyItemsPresenter.GetCardInfo(); }
public void CalculateTotalPrice() { BuyItemsPagePresenter BuyItemsPresenter = new BuyItemsPagePresenter(BuyItemsPageView); BuyItemsPresenter.CalculateTotalPrice(); }