private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { listener.Stopth(); listener = null; }
private void StartUDPListen() { listener = new NetworkComm.UDP.CLASSListener(19808); listener.StartListen(); listener.OnAddMessage += new EventHandler <NetworkComm.UDP.AddMessageEventarge>(invoke_message); }