Esempio n. 1
0
 public ProductPresenter(IProductView view, IProductRepository repository, IOpenFileDialog openFileDialog)
 {
     this.view = view;
     view.Initialize(this);
     this.repository     = repository;
     this.openFileDialog = openFileDialog;
 }
        public ProductPresenter(IProductView view)
        {
            this.view = view;
            view.Initialize(this);

            productRepository = new ProductRepository();
        }
Esempio n. 3
0
 public ProductPresenter(IProductView view, IProductRepository repository, IOpenFileDialog openFileDialog)
 {
     this.view = view;
     view.Initialize(this);
     this.repository = repository;
     this.openFileDialog = openFileDialog;
 }
Esempio n. 4
0
 public ProductPresenter()
 {
     view = new ViewForm();
     view.Initialize(this);
     repository     = new ProductRepository();
     openFileDialog = new OpenFileDialog();
 }