public static void StartToolService() { if (MainToolService == null) { MainToolService = new ToolService(MainToolServiceName, MainWindow); MainWindow.DocumentChangedEvent += DocumentChangedEventHandler; MainToolService.RunAsync(); } }