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