protected override void OnClosed(EventArgs e) { base.OnClosed(e); SpectrumProcessorBase.Free(); SerialDevice.FreeDevices(); UDPDevice.FreeDevices(); }