GasLineView.xaml.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Navigation;
  13. using System.Windows.Shapes;
  14. using Aitex.Core.Common.DeviceData;
  15. namespace Aitex.Triton160.UI.Views.Control
  16. {
  17. /// <summary>
  18. /// GasLineView.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class GasLineView : UserControl
  21. {
  22. public static readonly DependencyProperty ValveDataProperty = DependencyProperty.Register(
  23. "ValveData", typeof(AITValveData), typeof(GasLineView),
  24. new FrameworkPropertyMetadata(new AITValveData(), FrameworkPropertyMetadataOptions.AffectsRender));
  25. public AITValveData ValveData
  26. {
  27. get
  28. {
  29. return (AITValveData)this.GetValue(ValveDataProperty);
  30. }
  31. set
  32. {
  33. this.SetValue(ValveDataProperty, value);
  34. }
  35. }
  36. public static readonly DependencyProperty MFCDataProperty = DependencyProperty.Register(
  37. "MFCData", typeof(AITMfcData), typeof(GasLineView),
  38. new FrameworkPropertyMetadata(new AITMfcData(), FrameworkPropertyMetadataOptions.AffectsRender));
  39. public AITMfcData MFCData
  40. {
  41. get
  42. {
  43. return (AITMfcData)this.GetValue(MFCDataProperty);
  44. }
  45. set
  46. {
  47. this.SetValue(MFCDataProperty, value);
  48. }
  49. }
  50. public static readonly DependencyProperty CommandProperty = DependencyProperty.Register(
  51. "Command", typeof(ICommand), typeof(GasLineView),
  52. new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
  53. public ICommand Command
  54. {
  55. get
  56. {
  57. return (ICommand)this.GetValue(CommandProperty);
  58. }
  59. set
  60. {
  61. this.SetValue(CommandProperty, value);
  62. }
  63. }
  64. public GasLineView()
  65. {
  66. InitializeComponent();
  67. }
  68. }
  69. }