Пример #1
0
 private void LogReaderOnAnalyzing(HsLogReader sender, AnalyzingArgs args)
 {
     if (args.State == AnalyzingState.Start)
     {
         //indicate loading maybe
     }
     else if (args.State == AnalyzingState.End)
     {
         //reader done analyzing new stuff, update things
         _overlay.Dispatcher.BeginInvoke(new Action(() => _overlay.Update(false)));
     }
 }
 private void LogReaderOnAnalyzing(HsLogReader sender, AnalyzingArgs args)
 {
     if (args.State == AnalyzingState.Start)
     {
         //indicate loading maybe
     }
     else if (args.State == AnalyzingState.End)
     {
         //reader done analyzing new stuff, update things
         _overlay.Dispatcher.BeginInvoke(new Action(() => _overlay.Update(false)));
     }
 }
		private void LogReaderOnAnalyzing(HsLogReader sender, AnalyzingArgs args)
		{
			if (args.State == AnalyzingState.Start)
			{

			}
			else if (args.State == AnalyzingState.End)
			{
				//reader done analyzing new stuff, update things
				if (_overlay.IsVisible)
					_overlay.Update(false);

				if (_playerWindow.IsVisible)
					_playerWindow.SetCardCount(_game.PlayerHandCount,
											   30 - _game.PlayerDrawn.Sum(card => card.Count));

				if (_opponentWindow.IsVisible)
					_opponentWindow.SetOpponentCardCount(_game.OpponentHandCount,
														 _game.OpponentDeckCount, _game.OpponentHasCoin);


				if (_showIncorrectDeckMessage && !_showingIncorrectDeckMessage)
				{
					_showingIncorrectDeckMessage = true;
					ShowIncorrectDeckMessage();
				}

			}
		}