public static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ModelViewer modelViewer = new ModelViewer(); if (args.Length == 0) { var handle = GetConsoleWindow(); ShowWindow(handle, SW_HIDE); Application.Run(modelViewer); } else { bool startInteractive = HandleFlags(modelViewer, args, false); if (startInteractive) { InteractiveMode(modelViewer); } modelViewer.Dispose(); } }
public static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ModelViewer modelViewer = new ModelViewer(); // args = new String[] { "-game","fzero", "-importTpl", "D:\\Tools\\GxTools\\bmp_conf,lz.tpl", "-exportPng", "D:\\Tools\\GxTools\\result" }; if (args.Length == 0) { var handle = GetConsoleWindow(); ShowWindow(handle, SW_HIDE); Application.Run(modelViewer); } else { bool startInteractive = HandleFlags(modelViewer, args, false); if (startInteractive) { InteractiveMode(modelViewer); } modelViewer.Dispose(); } }