public static Boolean IsRecent(String HuntName) { if (_hunts.ContainsKey(HuntName)) { FoundHunt HuntData = (FoundHunt)_hunts[HuntName]; if (!HuntData.isExpired()) { return(true); } } return(false); }
public static void CheckSingle(String HuntName) { if (_hunts.ContainsKey(HuntName)) { FoundHunt HuntData = (FoundHunt)_hunts[HuntName]; if (HuntData.isExpired()) { _hunts.Remove(HuntName); updateWidget(); } } }
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; } } }
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); }
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); }