Information of changing relation
示例#1
0
 private void ExpressionReapplyRequested(RelationDataChangedInfo obj)
 {
     if (obj == null || obj.Change == RelationDataChange.Following)
     {
         this.RaiseReapplyFilter();
     }
 }
示例#2
0
 void AccountRelationDataAccountDataUpdated(RelationDataChangedInfo obj)
 {
     if (obj.AccountUserId == _userId)
     {
         this.RaiseReapplyFilter(obj);
     }
 }
示例#3
0
 private void OnAccountDataUpdated(long targetUser, bool isAdded, RelationDataChange change)
 {
     var rdci = new RelationDataChangedInfo
     {
         AccountUserId = this.AccountId,
         IsIdAdded = isAdded,
         TargetUserId = targetUser,
         Change = change
     };
     this.AccountDataUpdated.SafeInvoke(rdci);
     OnAccountDataUpdatedStatic(rdci);
 }
 private void OnAccountDataUpdated(long targetUser, bool isAdded, RelationDataChange change)
 {
     var rdci = new RelationDataChangedInfo
     {
         AccountUserId = this.AccountId,
         IsIdAdded = isAdded,
         TargetUserId = targetUser,
         Change = change
     };
     var handler = this.AccountDataUpdated;
     if (handler != null)
     {
         handler(rdci);
     }
     OnAccountDataUpdatedStatic(rdci);
 }
示例#5
0
 private void ExpressionReapplyRequested(RelationDataChangedInfo obj)
 {
     if (obj != null) return;
     System.Diagnostics.Debug.WriteLine("local user reapply");
     this.RaiseReapplyFilter();
 }
 private static void OnAccountDataUpdatedStatic(RelationDataChangedInfo obj)
 {
     var handler = AccountDataUpdatedStatic;
     if (handler != null) handler(obj);
 }
 private void PropagateEvent(RelationDataChangedInfo e)
 {
     this.AccountDataUpdated.SafeInvoke(e);
     AccountDataUpdatedStatic.SafeInvoke(e);
 }
 private void RaiseAccountDataUpdated(IEnumerable<long> targetUsers, bool isAdded)
 {
     var rdci = new RelationDataChangedInfo
     {
         AccountUserId = this._parent.AccountId,
         IsIdAdded = isAdded,
         TargetUserIds = targetUsers,
         Type = _type
     };
     this.AccountDataUpdated.SafeInvoke(rdci);
 }
示例#9
0
 protected void RaiseReapplyFilter(RelationDataChangedInfo relInfo)
 {
     this.ReapplyRequested.SafeInvoke(relInfo);
 }
 protected void RaiseReapplyFilter(RelationDataChangedInfo relInfo)
 {
     var handler = this.ReapplyRequested;
     if (handler != null) handler(relInfo);
 }