// Check by timer, whether the form of data collector is closed private static void isDCClosedChekingTimer_Tick(Object source, System.Timers.ElapsedEventArgs e) { try { object[] isDCClosedArg; if (EventHelper.CheckWhetherEventHappened("DCClosed", out isDCClosedArg)) { isDCClosed = true; } } finally { isDCClosedChekingTimer.Start(); } }