public IPScannerView(int tabId, string ipRange = null) { InitializeComponent(); viewModel = new IPScannerViewModel(tabId, ipRange); DataContext = viewModel; Dispatcher.ShutdownStarted += Dispatcher_ShutdownStarted; }
public IPScannerView(int tabId, string hostOrIPRange = null) { InitializeComponent(); _viewModel = new IPScannerViewModel(DialogCoordinator.Instance, tabId, hostOrIPRange); DataContext = _viewModel; Dispatcher.ShutdownStarted += Dispatcher_ShutdownStarted; }