Пример #1
0
 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);
             }
         }
     }
 }
Пример #2
0
 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);
        }
     }
      }
 }