终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RecipeSettingsView.xaml.cs 1.6 KiB

2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
1 vuosi sitten
2 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using BPA.Helper;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Reflection;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Data;
  11. using System.Windows.Documents;
  12. using System.Windows.Input;
  13. using System.Windows.Media;
  14. using System.Windows.Media.Imaging;
  15. using System.Windows.Navigation;
  16. using System.Windows.Shapes;
  17. namespace BPASmartClient.DosingSystem.View
  18. {
  19. /// <summary>
  20. /// RecipeSettingsView.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class RecipeSettingsView : UserControl
  23. {
  24. public RecipeSettingsView()
  25. {
  26. InitializeComponent();
  27. this.Unloaded += RecipeSettingsView_Unloaded;
  28. }
  29. private void RecipeSettingsView_Unloaded(object sender, RoutedEventArgs e)
  30. {
  31. Json<LocalRecipe>.Save();
  32. }
  33. //public static void SetAlignment()
  34. //{
  35. // //获取系统是以Left-handed(true)还是Right-handed(false)
  36. // var ifLeft = SystemParameters.MenuDropAlignment;
  37. // if (ifLeft)
  38. // {
  39. // Console.WriteLine($"系统为左撇子,转换为右撇子。");
  40. // // change to false
  41. // var t = typeof(SystemParameters);
  42. // var field = t.GetField("_menuDropAlignment", BindingFlags.NonPublic | BindingFlags.Static);
  43. // field.SetValue(null, false);
  44. // ifLeft = SystemParameters.MenuDropAlignment;
  45. // }
  46. //}
  47. }
  48. }