/// <summary> This should be triggered by an method that changes the content of an object /// to that the registered listeners can react to it. This is a version of /// notifyChanged() which allows to propagate a change event while preserving /// the original origin. /// /// </summary> /// <param name="evt"> A ChemObjectChangeEvent pointing to the source of where /// the change happend /// </param> public virtual void notifyChanged(IChemObjectChangeEvent evt) { if (Notification && ListenerCount > 0) { System.Collections.IList listeners = lazyChemObjectListeners(); for (int f = 0; f < listeners.Count; f++) { ((IChemObjectListener)listeners[f]).stateChanged(evt); } } }
/// <summary> Called by objects to which this object has /// registered as a listener. /// /// </summary> /// <param name="event"> A change event pointing to the source of the change /// </param> public virtual void stateChanged(IChemObjectChangeEvent event_Renamed) { notifyChanged(event_Renamed); }
public virtual void notifyChanged(IChemObjectChangeEvent evt) { currentChemFile.notifyChanged(evt); }
/// <summary> Called by objects to which this object has /// registered as a listener. /// /// </summary> /// <param name="event"> A change event pointing to the source of the change /// </param> public override void stateChanged(IChemObjectChangeEvent event_Renamed) { notifyChanged(event_Renamed); }