private static void timerYg120Pk10_Elapsed(object sender, ElapsedEventArgs e) { try { lock (TimeData.obj_locYg120Pk10) YouleToOther11x5.DataToOther(4004); } catch (Exception ex) { Console.WriteLine("Yg120Pk10 Exception:" + ex.Message); } }
private static void timerHg11x5_Elapsed(object sender, ElapsedEventArgs e) { try { lock (TimeData.obj_locHg11x5) YouleToOther11x5.DataToOther(2006); } catch (Exception ex) { Console.WriteLine("Hg11x5 Exception:" + ex.Message); } }