示例#1
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            main       = new mainForm();
            serverPool = new ServerPool();
            settFile   = new FileInfo("settings.xml");

            if (LoadSettings() == false)
            {
                firstExec = true;
                IPAddress local    = LocalIPInput();
                string    username = LocalUsernameInput();
                localUser = new User(local, username);
            }

            serverPool.Start();
            serverPool.LogIn();

            if (Program.firstExec)
            {
                main.FirstLogin();
            }

            Application.Run(main);

            CleanUp();
        }
示例#2
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            main = new mainForm();
            serverPool = new ServerPool();
            settFile = new FileInfo("settings.xml");

            if (LoadSettings() == false)
            {
                firstExec = true;
                IPAddress local = LocalIPInput();
                string username = LocalUsernameInput();
                localUser = new User(local, username);
            }

            serverPool.Start();
            serverPool.LogIn();

            if (Program.firstExec)
            {
                main.FirstLogin();
            }

            Application.Run(main);

            CleanUp();
        }