예제 #1
0
 private void InitializeAddin()
 {
     MissingType = System.Type.Missing;
     SynchronizationContext windowsFormsSynchronizationContext = new WindowsFormsSynchronizationContext();
     SynchronizationContext.SetSynchronizationContext(windowsFormsSynchronizationContext);
     TaskScheduler = TaskScheduler.FromCurrentSynchronizationContext();
     Log.InitLog(@"D:/hookeditem.log");
     Log.Info("*******START Addin*********");
     Log.Info("Main thread VSTA is {0} {1}", Thread.CurrentThread.Name, Thread.CurrentThread.ManagedThreadId);
     HookedItemsCallbacks callbacks = new HookedItemsCallbacks();
     HookedFolderItems = new HookedFolderItems(callbacks);
     HookedFolderItems.Initialize();
 }
예제 #2
0
 public HookedFolderItems( HookedItemsCallbacks hookedItemsCallbacks)
 {
     if (hookedItemsCallbacks == null) { throw new ArgumentNullException("hookedItemsCallbacks"); }
     _hookedItemsCallbacks = hookedItemsCallbacks;
 }