コード例 #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
ファイル: Program.cs プロジェクト: dferens/P2PChat
        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();
        }