Exemple #1
0
 public void Select(VmTreeItem parent)
 {
     if (((VmObject)parent.Parent.Data).TaskData is DebugTask dbtsk)
     {
         dbtsk.MotionIndex = dbtsk.Motions.IndexOf(Animation);
     }
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 public void Select(VmTreeItem parent)
 {
 }
Exemple #4
0
 public void Select(VmTreeItem parent)
 {
     VmMain.Context.ActiveLE = LandEntry;
 }
 private void CheckTranslation(VmTreeItem source, ServiceServiceClass target)
 {
     target.ServiceClassId.Should().Be(source.Id);
 }