/// <summary> /// настраиваем Tcp сервер /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void настройкаTcpСервераToolStripMenuItem_Click(object sender, EventArgs e) { TcpOptions options = new TcpOptions(); options.Port = _app.Server.Port; options.CountClients = _app.Server.CountConnections; options.ClientBufferSize = _app.Server.ReceiverBufferSize; if (options.ShowDialog(this) == DialogResult.OK) { _app.Server.Port = options.Port; _app.Server.CountConnections = options.CountClients; _app.Server.ReceiverBufferSize = options.ClientBufferSize; } }