示例#1
0
 public static void StopToolService()
 {
     if (MainToolService != null)
     {
         MainWindow.DocumentChangedEvent -= DocumentChangedEventHandler;
         MainToolService.Stop();
         MainToolService = null;
     }
 }
示例#2
0
 private static void DocumentChangedEventHandler(object sender, DocumentChangedEventArgs args)
 {
     MainToolService.SendDocumentChange();
 }