Tools/NodeEditor/Program.cs
/// <summary>
/// The main entry point for the application.
/// </summary>
The main entry point for the application.
The main entry point for the application .
[STAThread]
		static void Main()
		{
            var engine = new GUILayer.EngineDevice();
            GC.KeepAlive(engine);
            var catalog = new TypeCatalog(
                typeof(ShaderPatcherLayer.Manager),
                typeof(ShaderFragmentArchive.Archive),
                typeof(NodeEditorCore.ShaderFragmentArchiveModel),
                typeof(NodeEditorCore.ModelConversion),
                typeof(NodeEditorCore.ShaderFragmentNodeCreator),
                typeof(NodeEditorCore.DiagramDocument),
                typeof(ExampleForm)
            );
            using (var container = new CompositionContainer(catalog))
            {
                container.ComposeExportedValue<ExportProvider>(container);
                container.ComposeExportedValue<CompositionContainer>(container);
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(container.GetExport<ExampleForm>().Value);
            }
            engine.Dispose();
		}
[ STAThread ] static void Main ( ) { var engine = new GUILayer . EngineDevice ( ) ; GC . KeepAlive ( engine ) ; var catalog = new TypeCatalog ( typeof ( ShaderPatcherLayer . Manager ) , typeof ( ShaderFragmentArchive . Archive ) , typeof ( NodeEditorCore . ShaderFragmentArchiveModel ) , typeof ( NodeEditorCore . ModelConversion ) , typeof ( NodeEditorCore . ShaderFragmentNodeCreator ) , typeof ( NodeEditorCore . DiagramDocument ) , typeof ( ExampleForm ) ) ; using ( var container = new CompositionContainer ( catalog ) ) { container . ComposeExportedValue < ExportProvider > ( container ) ; container . ComposeExportedValue < CompositionContainer > ( container ) ; Application . EnableVisualStyles ( ) ; Application . SetCompatibleTextRenderingDefault ( false ) ; Application . Run ( container . GetExport < ExampleForm > ( ) . Value ) ; } engine . Dispose ( ) ; }
The main entry point for the application.
The main entry point for the application .