@@ -235,7 +235,7 @@ public MainWindow()
235235
236236 Version = AssemblyManager . Current . AssemblyVersion . ToString ( ) ;
237237
238- LanguageProperty . OverrideMetadata ( typeof ( FrameworkElement ) , new FrameworkPropertyMetadata ( XmlLanguage . GetLanguage ( LocalizationManager . Culture . IetfLanguageTag ) ) ) ;
238+ // LanguageProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(LocalizationManager.Culture.IetfLanguageTag)));
239239
240240 // Load appearance
241241 AppearanceManager . Load ( ) ;
@@ -337,7 +337,8 @@ private async void MetroWindowMain_Closing(object sender, CancelEventArgs e)
337337 WakeOnLANView wakeOnLANView ;
338338 PingView pingView ;
339339 TracerouteView tracerouteView ;
340- DNSLookupView DNSLookupView ;
340+ DNSLookupView dnsLookupView ;
341+ RemoteDesktopView remoteDesktopView ;
341342 WikiView wikiView ;
342343
343344 private ApplicationViewManager . Name ? currentApplicationViewName = null ;
@@ -392,10 +393,16 @@ private void ChangeApplicationView(ApplicationViewManager.Name name)
392393 contentControlApplication . Content = tracerouteView ;
393394 break ;
394395 case ApplicationViewManager . Name . DNSLookup :
395- if ( DNSLookupView == null )
396- DNSLookupView = new DNSLookupView ( ) ;
396+ if ( dnsLookupView == null )
397+ dnsLookupView = new DNSLookupView ( ) ;
397398
398- contentControlApplication . Content = DNSLookupView ;
399+ contentControlApplication . Content = dnsLookupView ;
400+ break ;
401+ case ApplicationViewManager . Name . RemoteDesktop :
402+ if ( remoteDesktopView == null )
403+ remoteDesktopView = new RemoteDesktopView ( ) ;
404+
405+ contentControlApplication . Content = remoteDesktopView ;
399406 break ;
400407 case ApplicationViewManager . Name . Wiki :
401408 if ( wikiView == null )
@@ -676,11 +683,15 @@ private async void CloseSettingsAction()
676683 settings . NegativeButtonText = System . Windows . Application . Current . Resources [ "String_Button_OK" ] as string ;
677684 settings . DefaultButtonFocus = MessageDialogResult . Affirmative ;
678685
686+ ConfigurationManager . Current . FixAirspace = true ;
687+
679688 if ( await this . ShowMessageAsync ( System . Windows . Application . Current . Resources [ "String_RestartRequired" ] as string , System . Windows . Application . Current . Resources [ "String_RestartRequiredAfterSettingsChanged" ] as string , MessageDialogStyle . AffirmativeAndNegative , settings ) == MessageDialogResult . Affirmative )
680689 {
681690 RestartApplication ( ) ;
682691 return ;
683692 }
693+
694+ ConfigurationManager . Current . FixAirspace = false ;
684695 }
685696
686697 // Change the transparency
0 commit comments