ValueChangedEventArgs.cs 673 B

1234567891011121314151617181920212223242526
  1. namespace System.Net.HomeMatic.Events {
  2. public class ValueChangedEventArgs : EventArgs {
  3. private HMDataPoint _dataPoint;
  4. private object _newValue;
  5. private object _oldValue;
  6. public ValueChangedEventArgs(HMDataPoint dp, object Old, object New) {
  7. this._dataPoint = dp;
  8. this._newValue = New;
  9. this._oldValue = Old;
  10. }
  11. public HMDataPoint DataPoint {
  12. get { return this._dataPoint; }
  13. }
  14. public object NewValue {
  15. get { return this._newValue; }
  16. }
  17. public object OldValue {
  18. get { return this._oldValue; }
  19. }
  20. }
  21. }