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