private void EventFactory_ParentChange(object sender, Midget.Events.Object.Relation.ParentChangeEventArgs e) { // find the parent node MidgetTreeNode newParent = FindNode(e.NewParent); // add all objects to the scene foreach (IObject3D obj in e.Objects) { treeView.MoveNode(FindNode(obj), newParent); } }
private void EventFactory_ParentChangeRequest(object sender, Midget.Events.Object.Relation.ParentChangeEventArgs e) { container.Add(new ParentChangeCommand(e.Objects, e.NewParent)); }