Exemplo n.º 1
0
        internal ViewerComputerLogic(ViewerData data, ViewerActions viewerActions, ComputerAccount computerAccount)
            : base(data)
        {
            _viewerActions = viewerActions;

            //PlayerLogic = new PlayerComputerLogic(data, computerAccount, viewerActions);
            //ShowmanLogic = new ShowmanComputerLogic(data, viewerActions, computerAccount);
        }
Exemplo n.º 2
0
        public PlayerHumanLogic(ViewerData data, ViewerActions viewerActions, ILocalizer localizer)
            : base(data, viewerActions, localizer)
        {
            TInfo.QuestionSelected += PlayerClient_QuestionSelected;
            TInfo.ThemeSelected    += PlayerClient_ThemeSelected;

            TInfo.SelectQuestion.CanBeExecuted = false;
            TInfo.SelectTheme.CanBeExecuted    = false;
        }
Exemplo n.º 3
0
        public ViewerHumanLogic(ViewerData data, ViewerActions viewerActions, ILocalizer localizer)
            : base(data)
        {
            _viewerActions = viewerActions;
            LO             = localizer;

            TInfo = new TableInfoViewModel(_data.TInfo, _data.BackLink.GetSettings())
            {
                AnimateText = true, Enabled = true
            };

            TInfo.PropertyChanged += TInfo_PropertyChanged;
            TInfo.Ready           += TInfo_Ready;

            TInfo.MediaLoadError += TInfo_MediaLoadError;
        }
Exemplo n.º 4
0
        //private readonly ViewerActions _viewerActions;
        //private readonly ViewerData _data;
        //private readonly ILocalizer _localizer;

        //public TableInfoViewModel TInfo { get; }

        public ShowmanHumanLogic(
            ViewerData data,
            TableInfoViewModel tableInfoViewModel,
            ViewerActions viewerActions,
            ILocalizer localizer)
            : base(data, viewerActions, localizer)
        {
            //_viewerActions = viewerActions;
            //_data = data;
            //_localizer = localizer;
            //TInfo = tableInfoViewModel;

            TInfo.QuestionSelected += PlayerClient_QuestionSelected;
            TInfo.ThemeSelected    += PlayerClient_ThemeSelected;

            TInfo.SelectQuestion.CanBeExecuted = false;
            TInfo.SelectTheme.CanBeExecuted    = false;
        }
Exemplo n.º 5
0
 internal ViewerComputerLogic(ViewerData data, ViewerActions viewerActions)
     : base(data)
 {
     _viewerActions = viewerActions;
 }
Exemplo n.º 6
0
        //private readonly ViewerActions _viewerActions;
        //private readonly ViewerData _data;

        public ShowmanComputerLogic(ViewerData data, ViewerActions viewerActions, ComputerAccount computerAccount)
            : base(data, viewerActions, computerAccount)
        {
            //_viewerActions = viewerActions;
            //_data = data;
        }
Exemplo n.º 7
0
 public ShowmanComputerLogic(ViewerData data, ViewerActions viewerActions)
     : base(data, viewerActions)
 {
 }