/// <summary> /// Called by the memento supporter that wraps this helper, to let it know that a change has occurred in its internal state. /// </summary> /// <param name="iss">The memento supporter which has changed.</param> private void ReportChange(ISupportsMementos iss) { m_hasChanged = true; MementoChangeEvent?.Invoke(iss); }
/// <summary> /// Called by the memento supporter that wraps this helper, to let it know that a change has occurred in its internal state. /// </summary> public void ReportChange() { m_hasChanged = true; MementoChangeEvent?.Invoke(m_iss); }
/// <summary> /// Initializes a new instance of the <see cref="MementoHelper"/> class. /// </summary> /// <param name="iss">The memento supporter that wraps this helper.</param> /// <param name="wrappeeReportsOwnChanges">if set to <c>true</c> the memento supporter is able to report its own changes.</param> public MementoHelper(ISupportsMementos iss, bool wrappeeReportsOwnChanges) { m_wrappeeReportsOwnChanges = wrappeeReportsOwnChanges; m_iss = iss; m_childChangeHandler = ReportChange; }