예제 #1
0
        public void FilterByProductType()
        {
            ViewAllProductsPageView.ViewAllProductsPageSearchIsClicked = true;
            ViewAllProductsPagePresenter presenter = new ViewAllProductsPagePresenter(ViewAllProductsPageView);

            presenter.LoadAllProducts();
            if (LoginSignupView.LoginSingupAccountID == 0)
            {
                AddColumnForCustomer(presenter);
            }
        }
예제 #2
0
        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();
        }
예제 #3
0
 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();
     }
 }
예제 #4
0
 public void AddColumnForCustomer(ViewAllProductsPagePresenter presenter)
 {
     presenter.AddColumnForCustomer();
 }
예제 #5
0
        public void ReStockItem()
        {
            ViewAllProductsPagePresenter presenter = new ViewAllProductsPagePresenter(ViewAllProductsPageView);

            presenter.ReStockItem();
        }
예제 #6
0
        public void ViewProductSellerInfo()
        {
            ViewAllProductsPagePresenter presenter = new  ViewAllProductsPagePresenter(ViewAllProductsPageView);

            presenter.GetRetailerInfo();
        }