GasFlowChartDataItem.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.Collections.ObjectModel;
  7. namespace Aitex.Core.UI.ControlDataContext
  8. {
  9. public class GasFlowChartDataItem : INotifyPropertyChanged
  10. {
  11. public event PropertyChangedEventHandler PropertyChanged;
  12. public void InvokePropertyChanged(string propertyName)
  13. {
  14. if (PropertyChanged != null)
  15. {
  16. PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  17. }
  18. }
  19. public ObservableCollection<GasFlowButtonDataItem> MOGasItems { get; set; }
  20. public ObservableCollection<GasFlowButtonDataItem> NH3GasItems { get; set; }
  21. string _mOTotal = "";
  22. public string MOTotal
  23. {
  24. get
  25. {
  26. return _mOTotal;
  27. }
  28. set
  29. {
  30. _mOTotal = value;
  31. InvokePropertyChanged("MOTotal");
  32. }
  33. }
  34. string _hydrideTotal = "";
  35. public string HydrideTotal
  36. {
  37. get
  38. {
  39. return _hydrideTotal;
  40. }
  41. set
  42. {
  43. _hydrideTotal = value;
  44. InvokePropertyChanged("HydrideTotal");
  45. }
  46. }
  47. }
  48. }