/// <summary> /// Process first game list line /// </summary> /// <param name="strLine"> Received line</param> private void ProcessFirstGameListLine(string strLine) { FICSGame game; bool bSupported; if (!String.IsNullOrWhiteSpace(strLine)) { if (FICSGame.IsLastGameLine(strLine)) { m_state.ResetCommand(); } else { game = FICSGame.ParseGameLine(strLine, out bSupported); if (game != null) { if (bSupported) { m_state.GameList.Add(game); } m_state.Phase++; } } } }
/// <summary> /// Process first game list line /// </summary> /// <param name="strLine"> Received line</param> private void ProcessGameListLine(string strLine) { FICSGame game; bool bSupported; game = FICSGame.ParseGameLine(strLine, out bSupported); if (game != null) { if (bSupported) { m_state.GameList.Add(game); } } else { m_state.ResetCommand(); } }