예제 #1
0
 private void TrackFullscreenPropertyChanges(object sender, PropertyChangedEventArgs e)
 {
     if (!object.Equals(e.OldValue, e.NewValue) && this.wbForm.FullScreen)
     {
         string key = e.Key;
         if (key != null)
         {
             if (!(key == "HideMainMenu") && !(key == "ShowMainMenuOnMouseMove"))
             {
                 if (key == "HideToolbars")
                 {
                     this.RedrawToolbars();
                 }
                 else if ((key == "HideStatusBar") || (key == "ShowStatusBarOnMouseMove"))
                 {
                     this.RedrawStatusBar();
                 }
             }
             else
             {
                 this.RedrawMainMenu();
             }
         }
     }
 }
예제 #2
0
 private static void OnPropertyChange(object sender, PropertyChangedEventArgs e)
 {
     if ((e.Key == "CoreProperties.UILanguage") && (e.NewValue != e.OldValue))
     {
         LoadLanguageResources((string) e.NewValue);
         if (LanguageChanged != null)
         {
             LanguageChanged(null, e);
         }
     }
 }
예제 #3
0
 private static void TrackPropertyChanges(object sender, PropertyChangedEventArgs e)
 {
     if ((e.OldValue != e.NewValue) && (workbench != null))
     {
         string key = e.Key;
         if (key != null)
         {
             if ((!(key == "SkyMap.Net.Gui.StatusBarVisible") && !(key == "SkyMap.Net.Gui.VisualStyle")) && !(key == "SkyMap.Net.Gui.ToolBarVisible"))
             {
                 if (key == "SkyMap.Net.Gui.UseProfessionalRenderer")
                 {
                     workbench.UpdateRenderer();
                 }
             }
             else
             {
                 workbench.RedrawAllComponents();
             }
         }
     }
 }