Esempio n. 1
0
        public TgcNetworkingModifierControl(TgcNetworkingModifier modifier, string serverName, string clientName)
        {
            InitializeComponent();

            this.modifier = modifier;
            this.textBoxServerName.Text = serverName;
            this.selectedPlayerId       = -1;

            this.buttonCloseServer.Enabled      = false;
            this.buttonConnectedClients.Enabled = false;

            this.buttonDisconnect.Enabled = false;

            //Cargar IP local
            this.textBoxIp.Text = TgcSocketServer.getHostAddress().ToString();

            clientsDialog = new TgcNetworkingModifierClientsDialog(this);
            serversDialog = new TgcNetworkingModifierServersDialog(this, clientName);
        }
        public TgcNetworkingModifierControl(TgcNetworkingModifier modifier, string serverName, string clientName)
        {
            InitializeComponent();

            this.modifier = modifier;
            this.textBoxServerName.Text = serverName;
            this.selectedPlayerId = -1;

            this.buttonCloseServer.Enabled = false;
            this.buttonConnectedClients.Enabled = false;

            this.buttonDisconnect.Enabled = false;

            //Cargar IP local
            this.textBoxIp.Text = TgcSocketServer.getHostAddress().ToString();
            
            clientsDialog = new TgcNetworkingModifierClientsDialog(this);
            serversDialog = new TgcNetworkingModifierServersDialog(this, clientName);
        }