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