Example #1
0
 private static void UpdateDatabaseWithSnapShot(Data.ApplicationDataSet.JSOperatorsRow dataRow, string snapShotError)
 {
     try
     {
         dataRow.SnapShotDate  = DateTime.Now;
         dataRow.SnapShotError = snapShotError;
         Common.ApplicationDataSet.JSOperatorsTA.Update(Common.ApplicationDataSet.JSOperators);
     }
     catch (Exception ex)
     {
         string errorMessage = string.Format("InstancesRow.ID:{0} - ex:{1} ex.Inner:{2}", dataRow.ID, ex, ex.InnerException);
         VNC.AppLog.Error(errorMessage, LOG_APPNAME, CLASS_BASE_ERRORNUMBER + 7);
     }
 }
Example #2
0
 public static void UpdateDataSet(this MSMOA.Operator operatorX, Data.ApplicationDataSet.JSOperatorsRow dataRow)
 {
     // NB. operator is a keyword so use operatorX
     try
     {
         //dataRow.X = operatorX.X;
     }
     catch (Exception ex)
     {
         VNC.AppLog.Error(ex, LOG_APPNAME, CLASS_BASE_ERRORNUMBER + 7);
         // TODO(crhodes):
         // Wrap anything above that throws an exception that we want to ignore,
         // e.g. property not available because of SQL Edition.
     }
 }