예제 #1
0
        private static void Main()
        {
            gameLogic = GameLogicManager.GetOne();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            s_form = new Form1();

            // set up network
            NetPeerConfiguration config = new NetPeerConfiguration("chat");

            config.MaximumConnections = MaximumConnections;
            config.Port = Port;
            s_server    = new NetServer(config);

            Application.Idle += new EventHandler(Application_Idle);
            Application.Run(s_form);
        }