private void DevicesForm_FormClosing(object sender, FormClosingEventArgs e) { ssdp.Dispose(); ssdp.DeviceFound -= DeviceFound; ssdp.DeviceLost -= DeviceLost; ssdp = null; }
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { ssdp.Dispose(); ssdp.DeviceFound -= new SSDPClient.DeviceFoundHandler(DeviceFound); ssdp.DeviceLost -= new SSDPClient.DeviceLostHandler(DeviceLost); ssdp = null; }
public MainForm() { InitializeComponent(); Logger.SetLogFilePath("Sample.log", Settings.Default.LogLevel); ssdp = new SSDPClient(); ssdp.DeviceFound += DeviceFound; ssdp.DeviceLost += DeviceLost; ssdp.FindByType("urn:ses-com:device:SatIPServer:1"); }