コード例 #1
0
 public static Boolean IsRecent(String HuntName)
 {
     if (_hunts.ContainsKey(HuntName))
     {
         FoundHunt HuntData = (FoundHunt)_hunts[HuntName];
         if (!HuntData.isExpired())
         {
             return(true);
         }
     }
     return(false);
 }
コード例 #2
0
 public static void CheckSingle(String HuntName)
 {
     if (_hunts.ContainsKey(HuntName))
     {
         FoundHunt HuntData = (FoundHunt)_hunts[HuntName];
         if (HuntData.isExpired())
         {
             _hunts.Remove(HuntName);
             updateWidget();
         }
     }
 }
コード例 #3
0
 public static void Check()
 {
     foreach (DictionaryEntry hunt in _hunts)
     {
         string    HuntName = (String)hunt.Key;
         FoundHunt HuntData = (FoundHunt)hunt.Value;
         if (HuntData.isExpired())
         {
             _hunts.Remove(HuntName);
             updateWidget();
             break;
         }
     }
 }
コード例 #4
0
        public static Boolean HasRecentReportsInSameZone(String Rank, String Zone)
        {
            DateTime saveNow = DateTime.Now;

            foreach (DictionaryEntry hunt in _hunts)
            {
                string    HuntName = (String)hunt.Key;
                FoundHunt HuntData = (FoundHunt)hunt.Value;
                if (HuntData.rank == Rank && HuntData.location.zone == Zone && !HuntData.isExpired())
                {
                    return(true);
                }
            }
            return(false);
        }
コード例 #5
0
        public static Boolean CheckRecentReports()
        {
            DateTime saveNow = DateTime.Now;

            foreach (DictionaryEntry hunt in _hunts)
            {
                string    HuntName = (String)hunt.Key;
                FoundHunt HuntData = (FoundHunt)_hunts[HuntName];
                if (!HuntData.isExpired())
                {
                    return(true);
                }
            }
            return(false);
        }