public ProductWindowView(ProductWindowPresenter productPresenter) { _productWindowPresenter = productPresenter; DataContext = _productWindowPresenter; InitializeComponent(); }
public ProductBL() { _ProductWindowPresenter = new ProductWindowPresenter(GetCompanyData(), GetProductData()); _productWindowView = new ProductWindowView(_ProductWindowPresenter); _productWindowView.DataContext = _ProductWindowPresenter; _productWindowView.Show(); }
public ProductBL() { // // instantiate the view model and initialize the data set // _productWindowPresenter = new ProductWindowPresenter(GetComanptData(), GetProductData()); // // instantiate, set the data context, and show the Main Window // _productWindowView = new ProductWindowView(_productWindowPresenter); _productWindowView.DataContext = _productWindowPresenter; _productWindowView.Show(); }