public static ICoreComponent CreateCoreComponent(IGraphUiContainer uiContainer, bool enableGeometricPreview) { if (null != CoreComponent.Instance) { throw new InvalidOperationException("'ClassFactory.CreateCoreComponent' called twice!"); } return(CoreComponent.CreateSingleton(uiContainer, enableGeometricPreview)); }
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)); }