public MainWindowViewModel()
 {
     shopListVm  = new ShoppingListViewModel();
     menuVm      = new CrudMenuViewModel(shopListVm);
     currentList = new List <ShoppingItemModel>();
     viewList    = new ObservableCollection <ShoppingItemModel>();
 }
 public CrudMenuViewModel(ShoppingListViewModel shopListVm)
 {
     dialogService = new DialogService();
     AddCommand    = new RelayCommand(AddItem);
     EditCommand   = new RelayCommand(EditItem);
     DeleteCommand = new RelayCommand(DeleteItem);
     _shopListVm   = shopListVm;
     _itemEntry    = new ItemDetailEntryViewModel(_shopListVm);
 }
 public ItemDetailEntryViewModel(ShoppingListViewModel shopListVm)
 {
     SaveItemCommand = new RelayCommand(SaveAnItem);
     currList        = shopListVm;
 }