Example #1
0
 protected void OnSaved(T newObject, Exception e)
 {
     YYT.Core.SavedEventArgs args = new YYT.Core.SavedEventArgs(newObject, e, null);
     if (_nonSerializableSavedHandlers != null)
     {
         _nonSerializableSavedHandlers.Invoke(this, args);
     }
     if (_serializableSavedHandlers != null)
     {
         _serializableSavedHandlers.Invoke(this, args);
     }
 }
Example #2
0
 protected void OnSaved(T newObject, Exception e, object userState)
 {
     MarkIdle();
     YYT.Core.SavedEventArgs args = new YYT.Core.SavedEventArgs(newObject, e, userState);
     if (_nonSerializableSavedHandlers != null)
     {
         _nonSerializableSavedHandlers.Invoke(this, args);
     }
     if (_serializableSavedHandlers != null)
     {
         _serializableSavedHandlers.Invoke(this, args);
     }
 }