public void CheckForDirtyChange(object sender) { if (!(this.m_bSuspendDirtyChecking | this.mbExternalSuspended)) { bool bCurrentDirty = this.IsDirty | this.m_blnExternalDirty; if (bCurrentDirty != this.LastDirty) { this.LastDirty = bCurrentDirty; DirtyChangedEventArgs e = new DirtyChangedEventArgs(); e.Dirty = bCurrentDirty; if (this.DirtyChanged != null) { this.DirtyChanged(this, e); } } } }
public void CheckForDirtyChange(object sender) { if (!(this.m_bSuspendDirtyChecking | this.mbExternalSuspended)) { bool bCurrentDirty = this.IsDirty | this.m_blnExternalDirty; if (bCurrentDirty != this.LastDirty) { this.LastDirty = bCurrentDirty; DirtyChangedEventArgs e = new DirtyChangedEventArgs(); e.Dirty = bCurrentDirty; if (this.DirtyChanged != null) { this.DirtyChanged(this, e); } } } }