ReservoirsRecipeParametersPanel.xaml.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. using MECF.Framework.Common.CommonData.Reservoir;
  2. using MECF.Framework.Common.RecipeCenter;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  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 CyberX8_Themes.UserControls
  18. {
  19. /// <summary>
  20. /// ReservoirsRecipeParametersPanel.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class ReservoirsRecipeParametersPanel : UserControl
  23. {
  24. public ReservoirsRecipeParametersPanel()
  25. {
  26. InitializeComponent();
  27. }
  28. #region 属性
  29. public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register(
  30. "ModuleName", typeof(string), typeof(ReservoirsRecipeParametersPanel),
  31. new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  32. /// <summary>
  33. /// 模块名称
  34. /// </summary>
  35. public string ModuleName
  36. {
  37. get
  38. {
  39. return (string)this.GetValue(ModuleNameProperty);
  40. }
  41. set
  42. {
  43. this.SetValue(ModuleNameProperty, value);
  44. }
  45. }
  46. public static readonly DependencyProperty ReservoirCommonDataProperty = DependencyProperty.Register(
  47. "ReservoirCommonData", typeof(CompactMembranReservoirData), typeof(ReservoirsRecipeParametersPanel),
  48. new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
  49. /// <summary>
  50. /// ReservoirCommonData
  51. /// </summary>
  52. public CompactMembranReservoirData ReservoirCommonData
  53. {
  54. get
  55. {
  56. return (CompactMembranReservoirData)this.GetValue(ReservoirCommonDataProperty);
  57. }
  58. set
  59. {
  60. this.SetValue(ReservoirCommonDataProperty, value);
  61. }
  62. }
  63. public static readonly DependencyProperty ResRecipeCommonDataProperty = DependencyProperty.Register(
  64. "ResRecipeCommonData", typeof(ResRecipe), typeof(ReservoirsRecipeParametersPanel),
  65. new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
  66. /// <summary>
  67. /// ReservoirCommonData
  68. /// </summary>
  69. public ResRecipe ResRecipeCommonData
  70. {
  71. get
  72. {
  73. return (ResRecipe)this.GetValue(ResRecipeCommonDataProperty);
  74. }
  75. set
  76. {
  77. this.SetValue(ResRecipeCommonDataProperty, value);
  78. }
  79. }
  80. #endregion
  81. }
  82. }