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(); }
public ProductPresenter() { view = new ViewForm(); view.Initialize(this); repository = new ProductRepository(); openFileDialog = new OpenFileDialog(); }