예제 #1
0
 public void WatchAddIn(WatchedAddIn addIn)
 {
     foreach (var file in addIn.WatchedFiles)
     {
         var fullPath = System.IO.Path.GetFullPath(file.Path);
         _watchedFiles[fullPath] = addIn; // This only allows one add-in to watch a particular file.
     }
 }
예제 #2
0
 // Called in the event handler - don't do slow work here.
 void InvalidateAddIn(WatchedAddIn watchedAddIn)
 {
     lock (_dirtyLock)
     {
         _dirtyAddIns.Add(watchedAddIn);
         ExcelAsyncUtil.QueueAsMacro(ReloadDirtyAddIns);
     }
 }
예제 #3
0
 // Called in the event handler - don't do slow work here.
 void InvalidateAddIn(WatchedAddIn watchedAddIn)
 {
     lock (_dirtyLock)
     {
         _dirtyAddIns.Add(watchedAddIn);
         ExcelAsyncUtil.QueueAsMacro(ReloadDirtyAddIns);
     }
 }
예제 #4
0
 public void WatchAddIn(WatchedAddIn addIn)
 {
     foreach (var file in addIn.WatchedFiles)
     {
         var fullPath = System.IO.Path.GetFullPath(file.Path);
         _watchedFiles[fullPath] = addIn; // This only allows one add-in to watch a particular file.
     }
 }