Exemplo n.º 1
0
 public RussianRouletteGameCommandEditorWindowViewModel(RussianRouletteGameCommandModel command)
     : base(command)
 {
     this.MinimumParticipants     = command.MinimumParticipants;
     this.TimeLimit               = command.TimeLimit;
     this.MaxWinners              = command.MaxWinners;
     this.StartedCommand          = command.StartedCommand;
     this.UserJoinCommand         = command.UserJoinCommand;
     this.NotEnoughPlayersCommand = command.NotEnoughPlayersCommand;
     this.UserSuccessCommand      = command.UserSuccessCommand;
     this.UserFailureCommand      = command.UserFailureCommand;
     this.GameCompleteCommand     = command.GameCompleteCommand;
 }
Exemplo n.º 2
0
        public override async Task UpdateExistingCommand(CommandModelBase command)
        {
            await base.UpdateExistingCommand(command);

            RussianRouletteGameCommandModel gCommand = (RussianRouletteGameCommandModel)command;

            gCommand.MinimumParticipants     = this.MinimumParticipants;
            gCommand.TimeLimit               = this.TimeLimit;
            gCommand.MaxWinners              = this.MaxWinners;
            gCommand.StartedCommand          = this.StartedCommand;
            gCommand.UserJoinCommand         = this.UserJoinCommand;
            gCommand.NotEnoughPlayersCommand = this.NotEnoughPlayersCommand;
            gCommand.UserSuccessCommand      = this.UserSuccessCommand;
            gCommand.UserFailureCommand      = this.UserFailureCommand;
            gCommand.GameCompleteCommand     = this.GameCompleteCommand;
        }