public Window1()
 {
     //setting the datacontext to the view model.
     _viewmodel = new ProductsViewModel();
     this.DataContext = _viewmodel;
     InitializeComponent();
 }
Esempio n. 2
0
 public Program()
 {
     VM_Obj = new ProductsViewModel();
     showAvailableCommands();
     MainThread();
 }