internal static void DestroySingleton() { if (null != coreComponent) { GraphToDSCompiler.GraphUtilities.CleanUp(); coreComponent.Shutdown(); coreComponent = null; } }
internal static CoreComponent CreateSingleton(IGraphUiContainer uiContainer, bool enableGeometricPreview) { if (null != coreComponent) throw new InvalidOperationException("'CoreComponent.CreateSingleton' called twice"); CoreComponent.coreComponent = new CoreComponent(uiContainer, enableGeometricPreview); return CoreComponent.coreComponent; }