public WidgetFlasher(Gtk.Widget aWidget, int aFlashCount) { flashedWidget = aWidget; flashCount = aFlashCount; if (FlashCount < 0) { flashType = FlashingType.LoopFlash; } if (FlashCount > 1) { flashType = FlashingType.TimedFlash; } Start(); }
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(); }