public static bool Exists(WidgetFlasher aFlasher) { if (queue.IndexOf(aFlasher) > -1) { return(true); } return(false); }
public static void Add(WidgetFlasher aFlasher) { if ((aFlasher == null) || (Exists(aFlasher) == true)) { return; } queue.Add(aFlasher); }
public static void Add(Widget aWidget) { WidgetFlasher item = GetFlasher(aWidget); if (item != null) { item.Cancel(); } queue.Add(new WidgetFlasher(aWidget)); }
public static void Remove(WidgetFlasher aFlasher) { if (aFlasher == null) { return; } if (aFlasher.IsActive == true) { aFlasher.Cancel(); return; } queue.Remove(aFlasher); }
public static void Remove(Widget aWidget) { if (aWidget == null) { return; } WidgetFlasher flasher = GetFlasher(aWidget); if (flasher == null) { return; } if (flasher.IsActive == true) { flasher.Cancel(); return; } }