private void timer2_Tick(object sender, EventArgs e) { try { if (lockTimerCounterN == 0) { int iLine = 0; foreach (UserControl c in this.tblMain2.Controls) { if (iLine > 2) { break; } else { UC.UC_MENU_DSF_2 MENU_WS = null; MENU_WS = (UC.UC_MENU_DSF_2)c; MENU_WS.changeColor(); MENU_WS.UpdateText(iLine); lockTimerCounter--; } iLine++; } } } catch { } }
private void timer2_Tick(object sender, EventArgs e) { try { if (ComVar.Var._strValue1 != "099") { int iLine = 0; foreach (UserControl c in this.tblMain1.Controls) { UC.UC_MENU_DSF MENU_WS = null; MENU_WS = (UC.UC_MENU_DSF)c; MENU_WS.changeColor(); MENU_WS.UpdateText(iLine); iLine++; } } else { if (lockTimerCounterN == 0) { int iLine = 0; foreach (UserControl c in this.tblMain2.Controls) { UC.UC_MENU_DSF_2 MENU_WS = null; MENU_WS = (UC.UC_MENU_DSF_2)c; MENU_WS.changeColor(); MENU_WS.UpdateText(iLine); lockTimerCounter--; iLine++; } } } } catch { } }