public PortScannerView(int tabId, string host = null, string ports = null) { InitializeComponent(); _viewModel = new PortScannerViewModel(DialogCoordinator.Instance, tabId, host, ports); DataContext = _viewModel; Dispatcher.ShutdownStarted += Dispatcher_ShutdownStarted; }
public PortScannerView(int tabId, string host = null, string ports = null) { InitializeComponent(); viewModel = new PortScannerViewModel(tabId, host, ports); DataContext = viewModel; Dispatcher.ShutdownStarted += Dispatcher_ShutdownStarted; }