public LockBoxGameCommandEditorWindowViewModel(LockBoxGameCommandModel command) : base(command) { this.CombinationLength = command.CombinationLength; this.InitialAmount = command.InitialAmount; this.SuccessfulCommand = command.SuccessfulCommand; this.FailureCommand = command.FailureCommand; this.StatusArgument = command.StatusArgument; this.StatusCommand = command.StatusCommand; this.InspectionArgument = command.InspectionArgument; this.InspectionCost = command.InspectionCost; this.InspectionCommand = command.InspectionCommand; }
public override async Task UpdateExistingCommand(CommandModelBase command) { await base.UpdateExistingCommand(command); LockBoxGameCommandModel gCommand = (LockBoxGameCommandModel)command; gCommand.CombinationLength = this.CombinationLength; gCommand.InitialAmount = this.InitialAmount; gCommand.SuccessfulCommand = this.SuccessfulCommand; gCommand.FailureCommand = this.FailureCommand; gCommand.StatusArgument = this.StatusArgument; gCommand.StatusCommand = this.StatusCommand; gCommand.InspectionArgument = this.InspectionArgument; gCommand.InspectionCost = this.InspectionCost; gCommand.InspectionCommand = this.InspectionCommand; }