public void FilterByProductType() { ViewAllProductsPageView.ViewAllProductsPageSearchIsClicked = true; ViewAllProductsPagePresenter presenter = new ViewAllProductsPagePresenter(ViewAllProductsPageView); presenter.LoadAllProducts(); if (LoginSignupView.LoginSingupAccountID == 0) { AddColumnForCustomer(presenter); } }
public void LoadAllProducts() { ViewAllProductsPageView.ViewAllProductsPageisRefreshing = MainPageView.isRefreshing; ViewAllProductsPageView.ViewAllProductsPageConnectionString = LoginSignupView.LoginSingupConnectionString; ViewAllProductsPageView.ViewAllProductsPageAccountTypeID = LoginSignupView.LoginSingupAccountTypeID; ViewAllProductsPageView.ViewAllProductsPageRetailerID = LoginSignupView.LoginSingupRetailerID; ViewAllProductsPagePresenter ViewAllProductspresenter = new ViewAllProductsPagePresenter(ViewAllProductsPageView); if (MainPageView.isRefreshing != true) { ViewAllProductspresenter.LoadFilterByProductType(); } ViewAllProductspresenter.LoadAllProducts(); }
public void ChangeToViewMyItems() { if (ViewAllProductsPageView.ViewAllProductsPageViewMyItems.Checked == true) { ViewAllProductsPageView.ViewAllProductsPageViewMyItemIsClicked = true; ViewAllProductsPageView.ViewAllProductsPageReStockPanel.Visible = true; } else { ViewAllProductsPageView.ViewAllProductsPageRetailerID = LoginSignupView.LoginSingupRetailerID; ViewAllProductsPageView.ViewAllProductsPageViewMyItemIsClicked = false; ViewAllProductsPagePresenter presenter = new ViewAllProductsPagePresenter(ViewAllProductsPageView); ViewAllProductsPageView.ViewAllProductsPageReStockPanel.Visible = false; presenter.LoadAllProducts(); } }
public void AddColumnForCustomer(ViewAllProductsPagePresenter presenter) { presenter.AddColumnForCustomer(); }
public void ReStockItem() { ViewAllProductsPagePresenter presenter = new ViewAllProductsPagePresenter(ViewAllProductsPageView); presenter.ReStockItem(); }
public void ViewProductSellerInfo() { ViewAllProductsPagePresenter presenter = new ViewAllProductsPagePresenter(ViewAllProductsPageView); presenter.GetRetailerInfo(); }