public Effect() { InitializeComponent(); appLanguage(); AllSelData asd = new AllSelData(); for (int i = 0; i < asd.getEffectStrCount(); i++) { tabEffectSel.Items.Add(asd.getEffectStr(i)); } clear(); timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(0.5); timer.Tick += timer_Tick; timer.Start(); }