コード例 #1
0
        public IPScannerView(int tabId, string ipRange = null)
        {
            InitializeComponent();

            viewModel = new IPScannerViewModel(tabId, ipRange);

            DataContext = viewModel;

            Dispatcher.ShutdownStarted += Dispatcher_ShutdownStarted;
        }
コード例 #2
0
        public IPScannerView(int tabId, string hostOrIPRange = null)
        {
            InitializeComponent();

            _viewModel = new IPScannerViewModel(DialogCoordinator.Instance, tabId, hostOrIPRange);

            DataContext = _viewModel;

            Dispatcher.ShutdownStarted += Dispatcher_ShutdownStarted;
        }