public TgcNetworkingModifierControl(TGCNetworkingModifier modifier, string serverName, string clientName) { InitializeComponent(); this.modifier = modifier; textBoxServerName.Text = serverName; SelectedPlayerId = -1; buttonCloseServer.Enabled = false; buttonConnectedClients.Enabled = false; buttonDisconnect.Enabled = false; //Cargar IP local textBoxIp.Text = TgcSocketServer.getHostAddress().ToString(); clientsDialog = new TgcNetworkingModifierClientsDialog(this); serversDialog = new TgcNetworkingModifierServersDialog(this, clientName); }
public TgcNetworkingModifierControl(string modifierName, string serverName, string clientName, int port, TGCExampleViewerNetworking example) : this() { tgcModifierTitleBar.setModifierName(modifierName); tgcModifierTitleBar.setContentPanel(contentPanel); this.example = example; textBoxServerName.Text = serverName; SelectedPlayerId = -1; buttonCloseServer.Enabled = false; buttonConnectedClients.Enabled = false; buttonDisconnect.Enabled = false; //Cargar IP local textBoxIp.Text = TgcSocketServer.getHostAddress().ToString(); clientsDialog = new TgcNetworkingModifierClientsDialog(this); serversDialog = new TgcNetworkingModifierServersDialog(this, clientName); }