Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            prop.szServerName                = srvnameTextBox.Text;
            prop.nMaxUsers                   = (int)maxusersNumericUpDown.Value;
            prop.szMOTDRaw                   = motdrawTextBox.Text;
            prop.nTcpPort                    = (int)tcpportNumericUpDown.Value;
            prop.nUdpPort                    = (int)udpportNumericUpDown.Value;
            prop.nUserTimeout                = (int)usertimeoutNumericUpDown.Value;
            prop.bAutoSave                   = autosaveCheckBox.Checked;
            prop.nMaxVoiceTxPerSecond        = (int)voiceNumericUpDown1.Value * 1024;
            prop.nMaxVideoCaptureTxPerSecond = (int)vidcapNumericUpDown5.Value * 1024;
            prop.nMaxMediaFileTxPerSecond    = (int)mediafileNumericUpDown2.Value * 1024;
            prop.nMaxDesktopTxPerSecond      = (int)desktopNumericUpDown3.Value * 1024;
            prop.nMaxTotalTxPerSecond        = (int)totalNumericUpDown4.Value * 1024;

            ttclient.DoUpdateServer(prop);
        }