Пример #1
0
 private void SetColorSchema(ColorSchema schema)
 {
     Current.Resources.MergedDictionaries[0].Source = new Uri($@"pack://application:,,,/Planetarium.Types;component/Themes/Colors{(schema == ColorSchema.Red ? "Red" : "Default")}.xaml");
     if (schema == ColorSchema.Red)
     {
         CursorsHelper.SetCustomCursors();
     }
     else
     {
         CursorsHelper.SetSystemCursors();
     }
 }
Пример #2
0
 protected override void OnExit(ExitEventArgs e)
 {
     CursorsHelper.SetSystemCursors();
     base.OnExit(e);
 }