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