终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

55 rindas
1.6 KiB

  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. }