public static void StartEvent(SeasonalEvents seasonalEvent) { switch (seasonalEvent) { case SeasonalEvents.Monday: SeasonalMonday(); break; case SeasonalEvents.Tuesday: SeasonalTuesday(); break; case SeasonalEvents.Wednesday: SeasonalWednesday(); break; case SeasonalEvents.Thursday: SeasonalThursday(); break; case SeasonalEvents.Friday: SeasonalFriday(); break; case SeasonalEvents.Saturday: SeasonalSaturday(); break; case SeasonalEvents.Sunday: SeasonalSunday(); break; } }
bool IsEventStart(SeasonalEvents events) { var e = EventManager.GetEvent(events); return(e.HasEverStarted(System.DateTime.UtcNow)); }