public AddWishViewModel(WishList wishlist, NavigatorViewModel parent) { _parent = parent; WishList = wishlist; Wishes = new ObservableCollection <Wish>(wishlist.Wishes); ConfirmWishCommand = new RelayCommand(_ => ConfirmWish()); EnumVal = Enum.GetValues(typeof(WishCategorie)).Cast <WishCategorie>().ToList(); }
public WishListsViewModel(NavigatorViewModel parent) { this._parent = parent; WishLists = new ObservableCollection <WishList>(); InitWishLists(); AddWishListCommand = new RelayCommand(_ => ShowAddWishList()); DeleteWishListCommand = new RelayCommand(_ => DeleteWishList()); ViewWishesCommand = new RelayCommand(_ => ViewWishes()); }
public AddWishListViewModel(ObservableCollection <WishList> WishLists, NavigatorViewModel parent) { this._parent = parent; this.WishLists = WishLists; _dateOfEvent = DateTime.Today; ConfirmWishListCommand = new RelayCommand(_ => ConfirmWishList()); SelectedUsers = new Collection <User>(); InitFriends(); }
public WishListAccessingViewModel(WishList wishList, NavigatorViewModel parent) { this.WishList = wishList; this._parent = parent; this._wishes = new ObservableCollection <Wish>(wishList.Wishes); EnumVal = Enum.GetValues(typeof(WishCategorie)).Cast <WishCategorie>().ToList(); OpenAccessorsCommand = new RelayCommand(_ => OpenAccessors()); BuyWishCommand = new RelayCommand(_ => BuyWish()); }
public WishListViewModel(WishList wishList, NavigatorViewModel parent) { this.WishList = wishList; this._parent = parent; this._wishes = new ObservableCollection <Wish>(wishList.Wishes); EnumVal = Enum.GetValues(typeof(WishCategorie)).Cast <WishCategorie>().ToList(); ToggleCheckedWishCommand = new RelayCommand((param) => ToggleCheckedWish(param)); AddWishCommand = new RelayCommand(_ => AddWish()); DeleteWishCommand = new RelayCommand(_ => DeleteWish()); OpenAccessorsCommand = new RelayCommand(_ => OpenAccessors()); }
public void ShowNavigator() { CurrentData = new NavigatorViewModel(this); }
public WishListsAccessingViewModel(NavigatorViewModel parent) { this._parent = parent; _wishLists = new ObservableCollection <WishList>(); InitWishLists(); }
public FriendsViewModel(NavigatorViewModel parent) { this._parent = parent; InitFriends(); ShowFriendCommand = new RelayCommand(_ => ShowFriend()); }