void ObjectSpaceOnObjectChanged(object sender, ObjectChangedEventArgs objectChangedEventArgs) { if (objectChangedEventArgs.Object is TObject) { OnChanged(new ObjectChangedEventArgs <TObject>(objectChangedEventArgs)); } }
protected override void SetModified(object obj, ObjectChangedEventArgs args) { if (args.Object != null && session.Dictionary.QueryClassInfo(args.Object) != null && session.GetClassInfo(args.Object).FindMember(args.PropertyName) is ISupportCancelModification) { return; } base.SetModified(obj, args); }
protected virtual void OnChanged(ObjectChangedEventArgs <TObject> e) { EventHandler <ObjectChangedEventArgs <TObject> > handler = ObjectChanged; if (handler != null) { handler(this, e); } }
public ObjectChangedEventArgs(ObjectChangedEventArgs objectChangedEventArgs) : this( objectChangedEventArgs.Object, objectChangedEventArgs.PropertyName, objectChangedEventArgs.OldValue, objectChangedEventArgs.NewValue) { }
protected virtual void OnChanged(ObjectChangedEventArgs <TObject> e) { EventHandler <ObjectChangedEventArgs <TObject> > handler = ObjectChanged; handler?.Invoke(this, e); }