public SlotMachineGameCommandEditorWindowViewModel(SlotMachineGameCommandModel command) : base(command) { this.Symbols = string.Join(" ", command.Symbols); this.FailureCommand = command.FailureCommand; this.Outcomes.AddRange(command.Outcomes.Select(o => new SlotMachineGameOutcomeViewModel(o))); }
public override async Task UpdateExistingCommand(CommandModelBase command) { await base.UpdateExistingCommand(command); SlotMachineGameCommandModel gCommand = (SlotMachineGameCommandModel)command; gCommand.Symbols = new List <string>(this.SymbolsList); gCommand.FailureCommand = this.FailureCommand; gCommand.Outcomes = new List <SlotMachineGameOutcomeModel>(this.Outcomes.Select(o => ((SlotMachineGameOutcomeViewModel)o).GetModel())); }