Exemple #1
0
        public static ICoreComponent CreateCoreComponent(IGraphUiContainer uiContainer, bool enableGeometricPreview)
        {
            if (null != CoreComponent.Instance)
            {
                throw new InvalidOperationException("'ClassFactory.CreateCoreComponent' called twice!");
            }

            return(CoreComponent.CreateSingleton(uiContainer, enableGeometricPreview));
        }
Exemple #2
0
        public static ICoreComponent CreateCoreComponent(IGraphUiContainer uiContainer)
        {
            if (null != CoreComponent.Instance)
            {
                throw new InvalidOperationException("'ClassFactory.CreateCoreComponent' called twice!");
            }

            // This method is called by NUnit test cases, therefore
            // we do not need geometric preview to be enabled.
            return(CoreComponent.CreateSingleton(uiContainer, false));
        }