AppConfig.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. using GalaSoft.MvvmLight;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using GeekDesk.Constant;
  8. namespace GeekDesk.ViewModel
  9. {
  10. [Serializable]
  11. public class AppConfig : ViewModelBase
  12. {
  13. private int menuSortType = (int)SortType.CUSTOM; //菜单排序类型
  14. private int iconSortType = (int)SortType.CUSTOM; //图表排序类型
  15. private double windowWidth = (double)DefaultConstant.WINDOW_WIDTH; //窗口宽度
  16. private double windowHeight = (double)DefaultConstant.WINDOW_HEIGHT; //窗口高度
  17. private double menuCardWidth = (double)DefaultConstant.MENU_CARD_WIDHT;//菜单栏宽度
  18. #region GetSet
  19. public int MenuSortType {
  20. get
  21. {
  22. return menuSortType;
  23. }
  24. set
  25. {
  26. menuSortType = value;
  27. RaisePropertyChanged();
  28. }
  29. }
  30. public int IconSortType
  31. {
  32. get
  33. {
  34. return iconSortType;
  35. }
  36. set
  37. {
  38. iconSortType = value;
  39. RaisePropertyChanged();
  40. }
  41. }
  42. public double WindowWidth
  43. {
  44. get
  45. {
  46. return windowWidth;
  47. }
  48. set
  49. {
  50. windowWidth = value;
  51. RaisePropertyChanged();
  52. }
  53. }
  54. public double WindowHeight
  55. {
  56. get
  57. {
  58. return windowHeight;
  59. }
  60. set
  61. {
  62. windowHeight = value;
  63. RaisePropertyChanged();
  64. }
  65. }
  66. public double MenuCardWidth
  67. {
  68. get
  69. {
  70. return menuCardWidth;
  71. }
  72. set
  73. {
  74. menuCardWidth = value;
  75. RaisePropertyChanged();
  76. }
  77. }
  78. #endregion
  79. }
  80. }