Пример #1
0
 public static bool Exists(WidgetFlasher aFlasher)
 {
     if (queue.IndexOf(aFlasher) > -1)
     {
         return(true);
     }
     return(false);
 }
Пример #2
0
        public static void Add(WidgetFlasher aFlasher)
        {
            if ((aFlasher == null) || (Exists(aFlasher) == true))
            {
                return;
            }

            queue.Add(aFlasher);
        }
Пример #3
0
        public static void Add(Widget aWidget)
        {
            WidgetFlasher item = GetFlasher(aWidget);

            if (item != null)
            {
                item.Cancel();
            }
            queue.Add(new WidgetFlasher(aWidget));
        }
Пример #4
0
 public static void Remove(WidgetFlasher aFlasher)
 {
     if (aFlasher == null)
     {
         return;
     }
     if (aFlasher.IsActive == true)
     {
         aFlasher.Cancel();
         return;
     }
     queue.Remove(aFlasher);
 }
Пример #5
0
        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;
            }
        }