Exemple #1
0
        public void RefreshUi()
        {
            System      = new SystemViewModel(save);
            Character   = new CharacterViewModel(save.Character);
            CommandList = new CommandListViewModel(save.CommandList);
            Decks       = new DecksViewModel(save.Decks, CommandList);

            OnPropertyChanged(nameof(System));
            OnPropertyChanged(nameof(Character));
            OnPropertyChanged(nameof(CommandList));
            OnPropertyChanged(nameof(Decks));
        }
Exemple #2
0
 public DeckViewModel(Deck deck, CommandListViewModel commandList)
 {
     this.deck   = deck;
     CommandList = commandList;
 }
Exemple #3
0
 public DecksViewModel(Deck[] decks, CommandListViewModel commandList) :
     base(decks.Select(x => new DeckViewModel(x, commandList)))
 {
 }