private void ButtonFlash_Tick(object sender, EventArgs e) { #region Left Button Flash if (bLeftFlash == true) { if (iBLF % 2 == 0) { Left.BackColor = Color.LightGreen; } else { Left.BackColor = Color.Ivory; } iBLF++; if (AmpelLinks.Zustand != 0) { bLeftFlash = false; Left.BackColor = Color.Ivory; iBLF = 0; } } #endregion Left Button Flash #region Out Button Flash if (bOutFlash == true) { if (iBOF % 2 == 0) { Out.BackColor = Color.LightGreen; } else { Out.BackColor = Color.Ivory; } iBOF++; if (AmpelNebenstraße.Zustand != 0) { bOutFlash = false; Out.BackColor = Color.Ivory; iBOF = 0; } } #endregion Out Button Flash #region Timer Stoppen, wenn nicht benötigt if (bOutFlash == false && bLeftFlash == false) { ButtonFlash.Stop(); } #endregion Timer Stoppen, wenn nicht benötigt }