Пример #1
0
 /// <summary>
 /// Resumes the change events. When change events are resumed, one change event will be fired if
 /// the material has changed. This prevents a cascade of change events that would be issued, for example during
 /// the processing of a reaction.
 /// </summary>
 /// <param name="issueSummaryEvents">if set to <c>true</c>, issues a summarizing event for each change type that has occurred.</param>
 public void ResumeChangeEvents(bool issueSummaryEvents)
 {
     if (m_eventDistiller == null)
     {
         m_eventDistiller = new Mixture.MaterialChangeDistiller();
     }
     m_eventDistiller.Release(ref MaterialChanged, issueSummaryEvents);
 }
Пример #2
0
 /// <summary>
 /// Suspends the issuance of change events. When change events are resumed, one change event will be fired if
 /// the material has changed. This prevents a cascade of change events that would be issued, for example during
 /// the processing of a reaction. See <see cref="Mixture.MaterialChangeDistiller"/>.
 /// </summary>
 public void SuspendChangeEvents()
 {
     if (m_eventDistiller == null)
     {
         m_eventDistiller = new Mixture.MaterialChangeDistiller();
     }
     m_eventDistiller.Hold(ref MaterialChanged);
 }