Example #1
0
        public void SetRecordDataPicker(string tableName, IRecordDataPicker picker)
        {
            ISupportRecordLog log = CurrentSource as ISupportRecordLog;

            if (log != null)
            {
                log.SetRecordDataPicker(tableName, picker);
            }
        }
Example #2
0
 public void SetRecordDataPicker(string tableName, IRecordDataPicker picker)
 {
     if (fRecordLogs == null)
     {
         fRecordLogs = new Dictionary <string, Tuple <IRecordDataPicker, List <RecordLogData> > >();
     }
     if (!fRecordLogs.ContainsKey(tableName))
     {
         fRecordLogs.Add(tableName, Tuple.Create(picker, new List <RecordLogData>()));
     }
 }
Example #3
0
 public static void LogRecord(TableResolver resolver, IRecordDataPicker dataPicker,
                              UpdatingEventArgs e, List <RecordLogData> logList)
 {
     try
     {
         var result = dataPicker.PickData(resolver, e);
         if (result != null)
         {
             RecordLogData log = new RecordLogData(resolver.TableName,
                                                   e.InvokeMethod, e.Status, result);
             logList.Add(log);
         }
     }
     catch
     {
     }
 }
 public void SetRecordDataPicker(string tableName, IRecordDataPicker picker)
 {
     fTableName  = tableName;
     fDataPicker = picker;
 }