Exemplo n.º 1
0
        public HangmanGameCommandEditorWindowViewModel(HangmanGameCommandModel command)
            : base(command)
        {
            this.MaxFailures            = command.MaxFailures;
            this.InitialAmount          = command.InitialAmount;
            this.CustomWordsFilePath    = command.CustomWordsFilePath;
            this.SuccessfulGuessCommand = command.SuccessfulGuessCommand;
            this.FailedGuessCommand     = command.FailedGuessCommand;
            this.GameWonCommand         = command.GameWonCommand;
            this.GameLostCommand        = command.GameLostCommand;
            this.StatusArgument         = command.StatusArgument;
            this.StatusCommand          = command.StatusCommand;

            this.SetUICommands();
        }
Exemplo n.º 2
0
        public override async Task UpdateExistingCommand(CommandModelBase command)
        {
            await base.UpdateExistingCommand(command);

            HangmanGameCommandModel gCommand = (HangmanGameCommandModel)command;

            gCommand.MaxFailures            = this.MaxFailures;
            gCommand.InitialAmount          = this.InitialAmount;
            gCommand.CustomWordsFilePath    = this.CustomWordsFilePath;
            gCommand.SuccessfulGuessCommand = this.SuccessfulGuessCommand;
            gCommand.FailedGuessCommand     = this.FailedGuessCommand;
            gCommand.GameWonCommand         = this.GameWonCommand;
            gCommand.GameLostCommand        = this.GameLostCommand;
            gCommand.StatusArgument         = this.StatusArgument;
            gCommand.StatusCommand          = this.StatusCommand;
        }