public override async Task UpdateExistingCommand(CommandModelBase command) { await base.UpdateExistingCommand(command); SpinGameCommandModel gCommand = (SpinGameCommandModel)command; gCommand.Outcomes = new List <GameOutcomeModel>(this.Outcomes.Select(o => o.GetModel())); }
public SpinGameCommandEditorWindowViewModel(SpinGameCommandModel command) : base(command) { this.Outcomes.AddRange(command.Outcomes.Select(o => new GameOutcomeViewModel(o))); }