예제 #1
0
 private void OnGroupsCollectionChanged(GroupsChangedArgs args)
 {
     if (IsOrphan)
     {
         this.UnregisterEvents();
     }
     else
     {
         var levelParams = new GroupsLevelUpdate(this.favoriteIcons, this.RootNodes, args, this.toolTipBuilder);
         levelParams.Run();
     }
 }
예제 #2
0
 private void DispatcherOnGroupsChanged(GroupsChangedArgs args)
 {
     if (args.Added.Count == 1)
     {
         this.addedGroupId = ((Group)args.Added[0]).Id;
     }
     if (args.Removed.Count == 1)
     {
         this.deletedGroupId = ((Group)args.Removed[0]).Id;
     }
     if (args.Updated.Count == 1)
     {
         this.updatedGroupId = ((Group)args.Updated[0]).Id;
     }
 }
예제 #3
0
 private void Dispatcher_GroupsChanged(GroupsChangedArgs args)
 {
     if (args.Added.Count == 1)
     {
         this.addedReported++;
     }
     if (args.Removed.Count == 1)
     {
         this.removedReported++;
     }
     if (args.Updated.Count == 1)
     {
         this.updateReported++;
     }
 }
예제 #4
0
 private void DispatcherGroupsChanged(GroupsChangedArgs args)
 {
     if (args.Added.Count == 1)
     {
         this.addedCount++;
     }
     if (args.Updated.Count == 1)
     {
         this.updatedCount++;
     }
     if (args.Removed.Count == 1)
     {
         this.deletedCount++;
     }
 }