public override void Add(Main.SelfAccumulateableEventArgs e) { var other = e as BoundariesChangedEventArgs; if (other == null) { throw new ArgumentException(string.Format("Argument e should be of type {0}, but is: {1}", typeof(BoundariesChangedEventArgs), e.GetType())); } _data |= other._data; }
public override void Add(Main.SelfAccumulateableEventArgs e) { var other = e as ScaleInstanceChangedEventArgs; if (null == other) { throw new ArgumentException("Expect event args of type: " + typeof(ScaleInstanceChangedEventArgs).ToString()); } if (ScaleIndex != other.ScaleIndex) { throw new InvalidProgramException("This should not happen, because the overrides for GetHashCode and Equals should prevent this."); } _newScale = other._newScale; }
public override void Add(Main.SelfAccumulateableEventArgs e) { var other = (DataColumnChangedEventArgs)e; Accumulate(other._minRowChanged, other._maxRowChanged, other._hasRowCountDecreased); }
public override void Add(Main.SelfAccumulateableEventArgs e) { Accumulate((DataColumnCollectionChangedEventArgs)e); }