public IPSTools() { InitializeComponent(); tcpServer = new TcpServer((int)tcpPort.Value, this.Handle, this.notifyIcon); tcpServer.AutoSendInterval = (int)autoSendInterval.Value; tcpServer.AutoSendIdle = autoSendIdle.Checked; if (checkBox_AutoStart.Checked) { tcpServer.Start(); } pictureBoxServer_Refresh(); }
private void BrownsonTool_FormClosing(object sender, FormClosingEventArgs e) { Settings.Default.Save(); tcpServer.Stop(); tcpServer = null; }