Example #1
0
        public AddNinjaViewModel(NinjaListViewModel ninjas)
        {
            this._ninjas    = ninjas;
            this.Ninja      = new NinjaVM();
            AddNinjaCommand = new RelayCommand(AddNinja, CanAddNinja);

            Ninja.NinjaId    = GetNextId();
            Ninja.GoldAmount = 5000;
        }
 public EditNinjaViewModel(NinjaVM selectedNinja, NinjaListViewModel listViewModel)
 {
     this._selectedNinja = selectedNinja;
     this._listViewModel = listViewModel;
     SaveCommand         = new RelayCommand(saveCommand);
 }