/// <summary> /// Occurs when the Dirty flag on a given object is changed /// </summary> private void ChildObject_Dirty(object sender, DirtyEventArgs e) { if (e.IsDirty) { this.Dirty = true; } }
/// <summary> /// Fires when the dirty bit for the Document changed. /// </summary> private void Document_DirtyChanged(object sender, DirtyEventArgs e) { string Dirty = _Document.Dirty ? "*" : string.Empty; this.Text = _Document.Name + Dirty; this.TabText = _Document.Name + Dirty; }
void trackable_OnDirtyStatusChanged(object sender, DirtyEventArgs<TrackableUnitTest.Person> e) { if (e.NewValue != null) { if (e.OldValue != null) { if (e.OldValue.Name.Equals(e.NewValue.Name)) Assert.Fail(); } } }