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());
 }
示例#3
0
 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();
 }
示例#4
0
        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());
        }
示例#6
0
 public void ShowNavigator()
 {
     CurrentData = new NavigatorViewModel(this);
 }
示例#7
0
 public WishListsAccessingViewModel(NavigatorViewModel parent)
 {
     this._parent = parent;
     _wishLists   = new ObservableCollection <WishList>();
     InitWishLists();
 }
示例#8
0
 public FriendsViewModel(NavigatorViewModel parent)
 {
     this._parent = parent;
     InitFriends();
     ShowFriendCommand = new RelayCommand(_ => ShowFriend());
 }