コード例 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            setting = new AppSetting();
            string AppMode = setting.ReadApplicationMode();

            if (string.IsNullOrEmpty(AppMode))
            {
                StartupConfig.CreateInstance().AppMode = AppMode;
                Application.Run(new frmStratup(setting));
            }
            else
            {
                if (AppMode == "SERVER")
                {
                    Server.ServerStartupForm obj = new Server.ServerStartupForm();
                    Application.Run(obj);
                }
                else
                {
                    Client.ClentStartupFrom obj = new Client.ClentStartupFrom();
                    Application.Run(obj);
                }
            }
        }
コード例 #2
0
 private static string GetAppMode()
 {
     setting = new AppSetting();
     return(setting.ReadApplicationMode());
 }