Exemplo n.º 1
0
 public WidgetFlasher(Gtk.Widget aWidget, int aFlashCount)
 {
     flashedWidget = aWidget;
     flashCount    = aFlashCount;
     if (FlashCount < 0)
     {
         flashType = FlashingType.LoopFlash;
     }
     if (FlashCount > 1)
     {
         flashType = FlashingType.TimedFlash;
     }
     Start();
 }
Exemplo n.º 2
0
 public WidgetFlasher(Gtk.Widget aWidget, int aFlashCount, int aFlashDuration, int aStepDuration)
 {
     //Console.WriteLine ("WidgetFlasher()");
     flashedWidget = aWidget;
     flashCount    = aFlashCount;
     flashDuration = aFlashDuration;
     stepDuration  = aStepDuration;
     if (FlashCount == 1)
     {
         Cancel();
         return;
     }
     if (FlashCount < 0)
     {
         flashType = FlashingType.LoopFlash;
     }
     if (FlashCount > 1)
     {
         flashType = FlashingType.TimedFlash;
     }
     Start();
 }