/// <summary> /// Sets the modify flag of the editor. /// </summary> /// <param name="dirty">The modify flag to be set.</param> private void SetDirty(bool dirty) { dirtyFlag = dirty; if (dirty) { if (target != null) { target.RaisePropertyChanging(this); } } }
/// <summary> /// Triggers a PropertyChanging event along with the hierarchy. /// </summary> /// <param name="sender">The source object of the event.</param> public void RaisePropertyChanging(object sender) { if (PropertyChanging != null) { PropertyChanging(sender, null); } // propagate the event to the parent objects if (parent != null) { parent.RaisePropertyChanging(sender); } }