private static void Timer_Tick(object sender, EventArgs e) { Log.Logger("Work ServiceWork.Timer_Tick"); ServiceWork.TellForPersonAboutStartLot((int)((DispatcherTimer)sender).Tag); ((DispatcherTimer)sender).Stop(); timers.Remove(((DispatcherTimer)sender)); Log.Logger("Finish Work ServiceWork.Timer_Tick"); }
private static void Timer_Tick(object sender, EventArgs e) { //пройтися циклом і повідомити людей //for //db.Lots.First(elem => elem.Id == lotId).TellPersonsAboutStart.Add(person); ServiceWork.TellForPersonAboutStartLot(); ((DispatcherTimer)sender).Stop(); }