public void Select(VmTreeItem parent) { if (((VmObject)parent.Parent.Data).TaskData is DebugTask dbtsk) { dbtsk.MotionIndex = dbtsk.Motions.IndexOf(Animation); } }
public VmTreeItem CreateTreeItem(TestTreeModelInit treeModel, int listCount = 5) { var tree = new VmTreeItem { Id = Guid.NewGuid() }; switch (treeModel) { case TestTreeModelInit.Empty: break; case TestTreeModelInit.List: tree.Children = CreateTreeList(listCount, TestTreeModelInit.Empty); break; case TestTreeModelInit.OneRootHierarchy: tree.Children = CreateTreeList(1, TestTreeModelInit.List); break; case TestTreeModelInit.MoreRootHierarchy: tree.Children = CreateTreeList(3, TestTreeModelInit.List, TestTreeModelInit.OneRootHierarchy, TestTreeModelInit.MoreRootHierarchy); break; } return(tree); }
public void Select(VmTreeItem parent) { }
public void Select(VmTreeItem parent) { VmMain.Context.ActiveLE = LandEntry; }
private void CheckTranslation(VmTreeItem source, ServiceServiceClass target) { target.ServiceClassId.Should().Be(source.Id); }