Esempio n. 1
0
 private PatrolResult UpdateBoard(IBoardInfo board, bool followBoard = true)
 {
     try
     {
         IThreadHeader[] allHeaders = ThreadParser.Parse(board, board.Read());
         bool success = allHeaders.Length > 0;
         if (!success && followBoard)
         {
             Common.CurrentSettings.Boards.FollowMovedBoard();
             UpdateBoard(board, false);
         }
         return new PatrolResult(success, board, allHeaders, DateTime.Now);
     }
     catch (System.Net.WebException ex)
     {
         Common.Logs.Add("通信エラー", board.Name + ex.Message, LogStatus.Error);
         return new PatrolResult(false, board, null, DateTime.Now);
     }
 }