Ejemplo 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();
        }
Ejemplo n.º 3
0
 public ProductPresenter(IProductView view, IProductRepository repository, IOpenFileDialog openFileDialog)
 {
     this.view = view;
     view.Initialize(this);
     this.repository = repository;
     this.openFileDialog = openFileDialog;
 }
Ejemplo n.º 4
0
 public ProductPresenter()
 {
     view = new ViewForm();
     view.Initialize(this);
     repository     = new ProductRepository();
     openFileDialog = new OpenFileDialog();
 }