Example #1
0
        private void hostServerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (PlayerName == null)
            {
                MessageBox.Show("You need to set the Player Options up first!");
                return;
            }

            Host_Server host = new Host_Server(this);

            host.Show();
        }
Example #2
0
        public Lobby(string LobbyName, Server_Browser browser, string ip, int port, bool ishost, Host_Server hostf = null)
        {
            InitializeComponent();

            this.Text        = "Server Lobby - " + LobbyName;
            this.name        = LobbyName;
            this.browser     = browser;
            this.IP_Address  = ip;
            this.remote_port = port;
            this.host        = ishost;
            this.host_form   = hostf;
            this.player_name = browser.PlayerName;
        }