Code


SUBMITTED BY: Tyfuz

DATE: Aug. 28, 2015, 6:49 a.m.

FORMAT: C#

SIZE: 1.4 kB

HITS: 661

  1. public class ProcessEntFurnaceSection : ProcessEntBase, IHaveActiveLength
  2. {
  3. #region Private
  4. private double activeLength;
  5. #endregion
  6. #region Public
  7. /// <summary>
  8. ///
  9. /// </summary>
  10. public double ActiveLength
  11. {
  12. get { return activeLength; }
  13. set
  14. {
  15. activeLength = value;
  16. NotifyPropertyChanged(() => ActiveLength);
  17. }
  18. }
  19. #endregion
  20. #region Cloning methods
  21. /// <summary>
  22. /// Creates a new object that is a copy of the current instance.
  23. /// </summary>
  24. /// <returns>
  25. /// A new object that is a copy of this instance.
  26. /// </returns>
  27. public override object Clone()
  28. {
  29. var cl = new ProcessEntFurnaceSection();
  30. CloneTo(cl);
  31. return cl;
  32. }
  33. /// <summary>
  34. /// Clones this to the passed destination
  35. /// </summary>
  36. /// <param name="destination">The destination.</param>
  37. public override void CloneTo(object destination)
  38. {
  39. base.CloneTo(destination);
  40. var tmpDestination = (ProcessEntFurnaceSection)destination;
  41. tmpDestination.ActiveLength = this.ActiveLength;
  42. }
  43. #endregion
  44. }

comments powered by Disqus