static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); gui = new MTSGUI(); Application.Run(gui); writeAllFiles(); }