Beispiel #1
0
 static void Main(string[] args)
 {
     Imports.FreeConsole();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new MainForm());
 }
Beispiel #2
0
 private static int Main(string[] args)
 {
     if (args.Length == 0)
     {
         Imports.FreeConsole();
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         Application.Run((Form) new Form1());
     }
     else
     {
         Utility.run_by_cmd = true;
         Environment.Exit(CmdLine.Main(args));
     }
     return(0);
 }
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Imports.FreeConsole();

#if DEBUG
            //문화권을 이탈리아로 설정한다.
            CultureInfo.CurrentUICulture = new CultureInfo("it");
#endif

            //제목 표시줄에 버전정보를 출력한다.
            MainForm        mainForm    = new MainForm();
            FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location);
            mainForm.Text = "SamFirm Continued (v" + versionInfo.FileVersion + ")";

            //프로그램 실행
            Application.Run(mainForm);
        }