Beispiel #1
0
 public void RemoveInstanceFromGroup(Instance i, Group g)
 {
     _service.RemoveInstanceFromGroup(i.ID, g.ID);
     g.Instances.Remove(i);
     InstancesWithoutGroup.AddOrUpdate(i);
     SourceItems.AddOrUpdate(CreateSourceItem(i));
 }
Beispiel #2
0
 public void RemoveGroup(Group g)
 {
     _service.RemoveGroup(g.ID);
     Groups.Remove(g);
     InstancesWithoutGroup.AddOrUpdate(g.Instances);
     SourceItems.AddOrUpdate(g.Instances.Select(i => CreateSourceItem(i)));
 }
Beispiel #3
0
 public void AddInstanceToGroup(Instance i, Group g)
 {
     _service.AddInstanceToGroup(i.ID, g.ID);
     g.Instances.Add(i);
     InstancesWithoutGroup.Remove(i);
     SourceItems.AddOrUpdate(CreateSourceItem(i, g));
 }