private void ExpressionReapplyRequested(RelationDataChangedInfo obj) { if (obj == null || obj.Change == RelationDataChange.Following) { this.RaiseReapplyFilter(); } }
void AccountRelationDataAccountDataUpdated(RelationDataChangedInfo obj) { if (obj.AccountUserId == _userId) { this.RaiseReapplyFilter(obj); } }
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); }
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); }
protected void RaiseReapplyFilter(RelationDataChangedInfo relInfo) { this.ReapplyRequested.SafeInvoke(relInfo); }
protected void RaiseReapplyFilter(RelationDataChangedInfo relInfo) { var handler = this.ReapplyRequested; if (handler != null) handler(relInfo); }