private void OnWindowClose() { Settings.Default.Save(); TcpClientViewModel?.Dispose(); TcpServerViewModel?.Dispose(); UdpViewModel?.Dispose(); UdpAsmViewModel?.Dispose(); }