Example #1
0
 public bool RemoveObject(ArchestrAObject obj)
 {
     if (_objects.ContainsKey(obj.ObjectID))
     {
         _objects.Remove(obj.ObjectID);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #2
0
 public bool AddObject(ArchestrAObject obj)
 {
     if (_objects.ContainsKey(obj.ObjectID))
     {
         return(false);
     }
     else
     {
         _objects.Add(obj.ObjectID, obj);
         return(true);
     }
 }
Example #3
0
 public ObjectViewModel(ArchestrAObject obj, ObjectViewModel parent)
 {
     _object  = obj;
     _parent  = parent;
     Children = new ReadOnlyCollection <ObjectViewModel>((from child in _object.Children select new ObjectViewModel(child, this)).ToList());
 }
Example #4
0
 public ObjectViewModel(ArchestrAObject obj) : this(obj, null)
 {
 }