示例#1
0
 private static void timerSe60_Elapsed(object sender, ElapsedEventArgs e)
 {
     try
     {
         lock (TimeData.obj_locSe60)
             YouleToOther.DataToOther(1020);
     }
     catch (Exception ex)
     {
         Console.WriteLine("SSC Exception:" + ex.Message);
     }
 }
示例#2
0
 private static void timerXjp120_Elapsed(object sender, ElapsedEventArgs e)
 {
     try
     {
         lock (TimeData.obj_locXjp120)
         {
             int second = DateTime.Now.Second;
             YouleToOther.DataToOther(1012);
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine("SSC Exception:" + ex.Message);
     }
 }