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