Esempio n. 1
0
        private void OnGameLoaded(GameLoadMessage message)
        {
            if (message.NewGame != null)
            {
                if (game == null)
                {
                    game              = message.NewGame;
                    game.TimeChanged += (sender, e) =>
                    {
                        TriggerPropertyChanged("Time");
                        TriggerPropertyChanged("DigitalTime");
                    };
                }
                else
                {
                    game.Update(message.NewGame);
                }

                RefreshUI();
            }
        }