/// <summary> /// Method executes when a viewmodel that lives in this /// viewmodel report a change in its dirty state. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UpdateTargetFiles_DirtyFlagChangedEvent(object sender, DocumentDirtyChangedEventArgs e) { // Make sure we keep dirty state if it is already there if (IsDirty == false) { IsDirty = e.IsDirtyNewValue; } SetSolutionIsDirty(); }
/// <summary> /// Executes when the dirty flag of the current document changes. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CurrentEditPage_DirtyFlagChangedEvent(object sender, DocumentDirtyChangedEventArgs e) { IsCurrentDocumentDirty = e.IsDirtyNewValue; }