@@ -351,12 +351,13 @@ private async void MetroWindowMain_Closing(object sender, CancelEventArgs e)
351351 NetworkInterfaceView networkInterfaceView ;
352352 IPScannerView ipScannerView ;
353353 PortScannerView portScannerView ;
354- SubnetCalculatorView subnetCalculatorView ;
355- WakeOnLANView wakeOnLANView ;
356354 PingView pingView ;
357355 TracerouteView tracerouteView ;
358356 DNSLookupView dnsLookupView ;
359357 RemoteDesktopView remoteDesktopView ;
358+ WakeOnLANView wakeOnLANView ;
359+ SubnetCalculatorView subnetCalculatorView ;
360+ ARPTableView arpTableView ;
360361 WikiView wikiView ;
361362
362363 private ApplicationViewManager . Name ? currentApplicationViewName = null ;
@@ -386,18 +387,6 @@ private void ChangeApplicationView(ApplicationViewManager.Name name)
386387
387388 contentControlApplication . Content = portScannerView ;
388389 break ;
389- case ApplicationViewManager . Name . SubnetCalculator :
390- if ( subnetCalculatorView == null )
391- subnetCalculatorView = new SubnetCalculatorView ( ) ;
392-
393- contentControlApplication . Content = subnetCalculatorView ;
394- break ;
395- case ApplicationViewManager . Name . WakeOnLAN :
396- if ( wakeOnLANView == null )
397- wakeOnLANView = new WakeOnLANView ( ) ;
398-
399- contentControlApplication . Content = wakeOnLANView ;
400- break ;
401390 case ApplicationViewManager . Name . Ping :
402391 if ( pingView == null )
403392 pingView = new PingView ( ) ;
@@ -422,6 +411,24 @@ private void ChangeApplicationView(ApplicationViewManager.Name name)
422411
423412 contentControlApplication . Content = remoteDesktopView ;
424413 break ;
414+ case ApplicationViewManager . Name . WakeOnLAN :
415+ if ( wakeOnLANView == null )
416+ wakeOnLANView = new WakeOnLANView ( ) ;
417+
418+ contentControlApplication . Content = wakeOnLANView ;
419+ break ;
420+ case ApplicationViewManager . Name . SubnetCalculator :
421+ if ( subnetCalculatorView == null )
422+ subnetCalculatorView = new SubnetCalculatorView ( ) ;
423+
424+ contentControlApplication . Content = subnetCalculatorView ;
425+ break ;
426+ case ApplicationViewManager . Name . ARPTable :
427+ if ( arpTableView == null )
428+ arpTableView = new ARPTableView ( ) ;
429+
430+ contentControlApplication . Content = arpTableView ;
431+ break ;
425432 case ApplicationViewManager . Name . Wiki :
426433 if ( wikiView == null )
427434 wikiView = new WikiView ( ) ;
0 commit comments