public AddProductControl()
        {
            InitializeComponent();

            DataContext = new ProductViewModel();
        }
 public ProductSaveCommand(IRepository<Product, int> repository, ProductViewModel productViewModel)
 {
     this.productViewModel = productViewModel;
     this.repository = repository;
 }
 public DeleteProductCommand(IRepository<Product, int> repository, ProductViewModel productViewModel)
 {
     this.repository = repository;
     this.productViewModel = productViewModel;
 }
        public MainWindow()
        {
            InitializeComponent();

            DataContext = new ProductViewModel();
        }
 public BuyProduct()
 {
     InitializeComponent();
     DataContext = new ProductViewModel();
 }