private void alarmTimer_Tick(object sender, EventArgs e) { if (flash != 0) { videoSourcePlayer.BorderColor = (flash % 2 == 1) ? Color.Black : Color.Red; flash--; } }