public void RaiseSaved(SavedEventArgs args) { if (Saved != null) { Saved(this, args); } }
protected virtual void OnSaved(T newObject, Exception e, object userState) { Csla.Core.SavedEventArgs args = new Csla.Core.SavedEventArgs(newObject, e, userState); if (_savedEvent != null) { _savedEvent.Invoke(this, args); } }
protected virtual void OnSaved(T newObject, Exception e, object userState) { Csla.Core.SavedEventArgs args = new Csla.Core.SavedEventArgs(newObject, e, userState); if (_nonSerializableSavedHandlers != null) _nonSerializableSavedHandlers.Invoke(this, args); if (_serializableSavedHandlers != null) _serializableSavedHandlers.Invoke(this, args); }
protected void OnSaved(T newObject, Exception e) { Csla.Core.SavedEventArgs args = new Csla.Core.SavedEventArgs(newObject, e, null); if (_nonSerializableSavedHandlers != null) { _nonSerializableSavedHandlers.Invoke(this, args); } if (_serializableSavedHandlers != null) { _serializableSavedHandlers.Invoke(this, args); } }
void obj_Saved(object sender, Csla.Core.SavedEventArgs e) { IsBusy = false; if (e.Error != null) { Error = e.Error; } else { ObjectInstance = e.NewObject; } OnSaved(e.NewObject, e.Error, e.UserState); }
protected virtual void OnSaved(T newObject, Exception e, object userState) { Csla.Core.SavedEventArgs args = new Csla.Core.SavedEventArgs(newObject, e, userState); #if !SILVERLIGHT && !NETFX_CORE if (_nonSerializableSavedHandlers != null) { _nonSerializableSavedHandlers.Invoke(this, args); } if (_serializableSavedHandlers != null) { _serializableSavedHandlers.Invoke(this, args); } #else if (Saved != null) { Saved(this, args); } #endif }
private void Lineage_SaveCompleted(object sender, SavedEventArgs eventArgs) { DataSource = (Lineage)eventArgs.NewObject; SetPanelMode(PanelModeEnum.LineageDisplay); IsBusy = false; if (Saved != null) Saved(this, new LineageEventArgs(DataSource)); }
private void Lineage_DeleteCompleted(object sender, SavedEventArgs e) { IsBusy = false; SetPanelMode(PanelModeEnum.LineageDisplay); if (Deleted != null) Deleted(this, new LineageEventArgs(DataSource)); }