@@ -421,11 +421,13 @@ private async void MetroWindowMain_Closing(object sender, CancelEventArgs e)
421421 SubnetCalculatorHostView subnetCalculatorHostView ;
422422 HTTPHeadersHostView httpHeadersHostView ;
423423 LookupHostView lookupHostView ;
424+ ConnectionsView connectionsView ;
425+ ListenersView listenersView ;
424426 ARPTableView arpTableView ;
425427
426428 private ApplicationViewManager . Name ? currentApplicationViewName = null ;
427429
428- private void ChangeApplicationView ( ApplicationViewManager . Name name , EventSystemRedirectApplicationArgs args = null )
430+ private void ChangeApplicationView ( ApplicationViewManager . Name name )
429431 {
430432 if ( currentApplicationViewName == name )
431433 return ;
@@ -448,10 +450,6 @@ private void ChangeApplicationView(ApplicationViewManager.Name name, EventSystem
448450 if ( portScannerHostView == null )
449451 portScannerHostView = new PortScannerHostView ( ) ;
450452
451- // Create a new tab
452- if ( args != null )
453- portScannerHostView . AddTab ( args . Data ) ;
454-
455453 contentControlApplication . Content = portScannerHostView ;
456454 break ;
457455 case ApplicationViewManager . Name . Ping :
@@ -515,6 +513,18 @@ private void ChangeApplicationView(ApplicationViewManager.Name name, EventSystem
515513
516514 contentControlApplication . Content = lookupHostView ;
517515 break ;
516+ case ApplicationViewManager . Name . Connections :
517+ if ( connectionsView == null )
518+ connectionsView = new ConnectionsView ( ) ;
519+
520+ contentControlApplication . Content = connectionsView ;
521+ break ;
522+ case ApplicationViewManager . Name . Listeners :
523+ if ( listenersView == null )
524+ listenersView = new ListenersView ( ) ;
525+
526+ contentControlApplication . Content = listenersView ;
527+ break ;
518528 case ApplicationViewManager . Name . ARPTable :
519529 if ( arpTableView == null )
520530 arpTableView = new ARPTableView ( ) ;
0 commit comments