// Load LanguageHeader in a List private void FillList() { var countLanguages = LanguageTotal.GetLanguagesCount(); for (int i = 0; i < countLanguages; i++) { headerLanguage.Add(LogOnLanguage.SelectLanguageHeader(i)); } }
// Timer to change LanguageHeader in intervall private void TimerEventProcessor(object sender, EventArgs e) { if (headerCounter == LanguageTotal.GetLanguagesCount()) { headerCounter = 0; } // Go through the List to change HeaderLanguage SelectLanguageHeader = headerLanguage[headerCounter]; headerCounter += 1; }