Esempio n. 1
0
        public void SelectModel(int selection_number)
        {
            if (!selection_dict.ContainsKey(selection_number))
            {
                return;
            }
            CLoadedObject model = selection_dict[selection_number];

            model.changeState(new Jusin.ObjectModel.State.ModelStateSelected());
            selected_models.Add(selection_dict[selection_number]);
        }
        public void SelectModel(int selection_number)
        {
            if (!selection_dict.ContainsKey(selection_number))
            {
                return;
            }
            CLoadedObject model = selection_dict[selection_number];

            model.changeState(new Jusin.ObjectModel.State.ModelStateSelected());
            selected_models.Add(selection_dict[selection_number]);
            if (tree_nodes.Nodes.ContainsKey(selection_number.ToString()))
            {
                tree_nodes.TreeView.SelectedNode = tree_nodes.Nodes[selection_number.ToString()];
            }
        }