public void ValidateShadowedProperty(object o) { Shadower shadower = (Shadower)o; Assert.AreEqual("Hello!", shadower.Content); Shadowed shadowed = (Shadowed)o; Assert.IsNull(shadowed.Content); }
/// <summary> /// Disposes the <see cref="OwnerDrawnItemImageState"/>. /// </summary> public void Dispose() { if (Normal != null) { Normal.Dispose(); } if (Disabled != null) { Disabled.Dispose(); } if (Shadowed != null) { Shadowed.Dispose(); } this.Normal = null; this.Shadowed = null; this.Disabled = null; GC.SuppressFinalize(this); }