private void OnWindowClose() { Settings.Default.Save(); TcpClientViewModel?.Dispose(); TcpServerViewModel?.Dispose(); UdpViewModel?.Dispose(); UdpAsmViewModel?.Dispose(); }
public MainViewModel() { TcpClientViewModel = new TcpClientViewModel(); TcpServerViewModel = new TcpServerViewModel(); UdpViewModel = new UdpViewModel(); UdpAsmViewModel = new UdpAsmViewModel(); UdpSsmViewModel = new UdpSsmViewModel(); SettingsViewModel = new SettingsViewModel(); }