private void NudgeTimerTick(object sender, EventArgs eventArgs) { NudgeTimerEventArgs myEventArgs = new NudgeTimerEventArgs(); Tick(this, myEventArgs); if (!myEventArgs.Cancel) { switch (Interval) { case 120000: Interval = 240000; break; case 240000: Interval = 360000; break; case 360000: Interval = 600000; break; } } }
private void NudgeTimerTick(object sender, EventArgs eventArgs) { NudgeTimerEventArgs myEventArgs = new NudgeTimerEventArgs(); Tick(this, myEventArgs); if (!myEventArgs.Cancel) { switch (Interval) { case 120000: Interval = 240000; break; case 240000: Interval = 360000; break; case 360000: Interval = 600000; break; } } }