protected void Page_Init(object sender, EventArgs e)
 {
     _presenter = new ProductListPresenter(this,
                                           ObjectFactory.GetInstance <Service.ProductService>());
     ddlCustomerType.SelectedIndexChanged +=
         delegate { _presenter.Display(); };
 }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Page.IsPostBack != true)
     {
         _presenter.Display();
     }
 }
Ejemplo n.º 3
0
        public ActionResult Index()
        {
            _presenter = new ProductListPresenter(this,
                                                  ObjectFactory.GetInstance <Service.ProductService>());

            _presenter.Display();

            return(View(_products));
        }
Ejemplo n.º 4
0
        private void ddlCustomerType_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.ddlCustomerType.SelectedIndex == -1)
            {
                return;
            }
            ProductListPresenter presenter = new ProductListPresenter(this, ObjectFactory.GetInstance <AppService.ProductService>());

            presenter.Display();
        }
Ejemplo n.º 5
0
 public MainWindow()
 {
     InitializeComponent();
     init();
     _presenter.Display();
 }
 void DdlCustomerTypeSelectedIndexChanged(object sender, EventArgs e)
 {
     _presenter.Display();
 }
Ejemplo n.º 7
0
 private void RePresent()
 {
     productService = new ProductService(productRepository, promotionService);
     presenter      = new ProductListPresenter(this, productService);
     presenter.Display();
 }
Ejemplo n.º 8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     presenter.Display();
 }
Ejemplo n.º 9
0
 protected void Page_Init(object sender, EventArgs e)
 {
     _presenter = new ProductListPresenter(this);
     this.ddlCustomerType.SelectedIndexChanged += delegate { _presenter.Display(); };
 }
Ejemplo n.º 10
0
 protected void Page_Init(object sender, EventArgs e)
 {
     presenter = new ProductListPresenter(this, productService);
     this.ddlDiscountType.SelectedIndexChanged += delegate { presenter.Display(); };
 }
Ejemplo n.º 11
0
 protected void Page_Init(object sender, EventArgs e)
 {
     _presenter = new ProductListPresenter(this, BootStrapper.Container.GetInstance <ProductService>());
     this.ddlCustomerType.SelectedIndexChanged += delegate { _presenter.Display(); };
 }