private void timer_Tick( object sender, EventArgs e ) { if ( ticksBeforeNotificiation != -1 ) { // time to notify if ( ticksBeforeNotificiation == 0 ) { // notify users NotifyClients( ); } ticksBeforeNotificiation--; } }