예제 #1
0
 internal static void DestroySingleton()
 {
     if (null != coreComponent)
     {
         GraphToDSCompiler.GraphUtilities.CleanUp();
         coreComponent.Shutdown();
         coreComponent = null;
     }
 }
예제 #2
0
        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;
        }