Пример #1
0
 /// <summary>
 /// This will run when whaaat?
 /// </summary>
 private void dataLoggerClockCompleted(bool successful, CSIDATALOGGERLib.clock_outcome_type response_code, DateTime current_date)
 {
     try
     {
         if (successful)
         {
             logResponse("+ Successfully synced clocks to " + current_date + ".");
             // throw event Clock Sync Ok
         }
         else
         {
             logResponse("- Could not get/set clock from data logger. Error code: " + response_code + ".");
             // throw event Clock Sync Failed
         }
         ClockSyncArgs csArgs = new ClockSyncArgs(successful, response_code, current_date);
         ClockSync(this, csArgs);
     }
     catch (Exception excp)
     {
         logResponse("- CSI Datalogger onClockComplete Event : ERROR" + excp.Source + ": " + excp.Message);
         // throw event Clock Sync Failed
     }
 }
Пример #2
0
 /// <summary>
 /// This will run when whaaat?
 /// </summary>
 private void dataLoggerClockCompleted(bool successful, CSIDATALOGGERLib.clock_outcome_type response_code, DateTime current_date)
 {
     try
     {
         if (successful)
         {
             logResponse("+ Successfully synced clocks to " + current_date + ".");
             // throw event Clock Sync Ok
         }
         else
         {
             logResponse("- Could not get/set clock from data logger. Error code: " + response_code + ".");
             // throw event Clock Sync Failed
         }
         ClockSyncArgs csArgs = new ClockSyncArgs(successful, response_code, current_date);
         ClockSync(this, csArgs);
     }
     catch (Exception excp)
     {
         logResponse("- CSI Datalogger onClockComplete Event : ERROR" + excp.Source + ": " + excp.Message);
         // throw event Clock Sync Failed
     }
 }