Esempio n. 1
0
        private void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            Dictionary <EditorScene.ObjID, EditorScene.SelectInfo> newSelection = new Dictionary <EditorScene.ObjID, EditorScene.SelectInfo>();

            foreach (int i in listBox1.SelectedIndices)
            {
                EditorScene.ObjID id = new EditorScene.ObjID(i, 0);
                newSelection.Add(id, scene.generateSelectInfo(id));
            }
            scene.SelectedObjects = newSelection;
        }