示例#1
0
        public void ProcessGameBlast()
        {
            int numGames = _CSS.Games.Count;

            for (int i = 0; i < numGames; i++)
            {
                CSSObjects.Game game       = (CSSObjects.Game)_CSS.Games.GameCollection().GetByIndex(i);
                int             nEventType = 0;
                if (game != null)
                {
                    nEventType = Int32.Parse(game.EventType);
                    //if (nEventType == 1)
                    //{
                    TickerCSSGame objGame = new TickerCSSGame(Game_ClockTick, game, ref _VentuzRemoting);
                    _cssGames.Add(objGame);

                    /*}
                     * else
                     * {
                     *  string test1 = game.Description;
                     *  string test2 = game.ID.ToString();
                     *  string test3 = game.Key;
                     *  string test = "game not added.";
                     *
                     * }*/
                }
            }

            _Initialized = true;
        }
示例#2
0
 private void Games_GameUpdated(ref CSSObjects.Game game)
 {
     if (_Initialized)
     {
         TickerCSSGame objGame = new TickerCSSGame(Game_ClockTick, game, ref _VentuzRemoting);
         _cssGames.Add(objGame);
     }
 }