コード例 #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();
        }