コード例 #1
0
 void ObjectSpaceOnObjectChanged(object sender, ObjectChangedEventArgs objectChangedEventArgs)
 {
     if (objectChangedEventArgs.Object is TObject)
     {
         OnChanged(new ObjectChangedEventArgs <TObject>(objectChangedEventArgs));
     }
 }
コード例 #2
0
 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);
 }
コード例 #3
0
        protected virtual void OnChanged(ObjectChangedEventArgs <TObject> e)
        {
            EventHandler <ObjectChangedEventArgs <TObject> > handler = ObjectChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
コード例 #4
0
 public ObjectChangedEventArgs(ObjectChangedEventArgs objectChangedEventArgs)
     : this(
         objectChangedEventArgs.Object, objectChangedEventArgs.PropertyName, objectChangedEventArgs.OldValue,
         objectChangedEventArgs.NewValue)
 {
 }
コード例 #5
0
        protected virtual void OnChanged(ObjectChangedEventArgs <TObject> e)
        {
            EventHandler <ObjectChangedEventArgs <TObject> > handler = ObjectChanged;

            handler?.Invoke(this, e);
        }