Exemplo n.º 1
0
 public void SetUp()
 {
     position1 = new VRPosition(42, 42, 42);
     scale = new VRScale(100, 100);
     tree1 = new TreeViewModel(position1, 1);
     tree2 = new TreeViewModel(position1, 2);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Creates the new tree.
        /// </summary>
        /// <param name="position">The position.</param>
        /// <param name="id">The identifier.</param>
        /// <returns>
        /// the view-model of the tree
        /// </returns>
        public TreeViewModel CreateNewObject(VRPosition position, int id)
        {
            TreeView view = new TreeView();
            TreeViewModel viewModel = new TreeViewModel(position, id);

            this.LinkMVVM(view, viewModel);
            return viewModel;
        }