private void TestTimer() { if (_timer.Enabled != (_timer.Enabled = _border = (_flags[(int)Flags.AutoScroll] && !_flags[(int)Flags.CenterAxis] && !InnerMargin.Contains(this.PointToClient(Control.MousePosition))))) { Reload(); } }
// These probably aren't compared but it is not expensive to provide the overrides, // especially given the Reflection issue if they are compared without these, as // described in FxCop rule CA1815. // Omitting getHashCode violates rule: OverrideGetHashCodeOnOverridingEquals. /// <summary> /// Return a hashcode based upon data members. /// </summary> /// <returns></returns> public override int GetHashCode() { return(InnerMargin.GetHashCode() ^ FixedPosition.GetHashCode() ^ Weight.GetHashCode()); }