private void linkLblNewCamera_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     ObjectChooseType oct = new ObjectChooseType(typeof (Camera));
     if (oct.ShowDialog() == DialogResult.OK) {
         Camera camera = Activator.CreateInstance(oct.SelectedType, true) as Camera;
         if (camera != null) {
             UnifiedScenesRepository.CurrentEditingScene.Cameras.Add(camera);
             this.listBox1.Items.Add(camera);
         }
     }
 }
 private void linkLblNewMaterial_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     //GenericCollectionForm<AbstractMaterial> form = new GenericCollectionForm<AbstractMaterial>();
     //form.Objects = Treevi
     ObjectChooseType choose = new ObjectChooseType(typeof (Material));
     if (choose.ShowDialog() == DialogResult.OK) {
         Material material = Activator.CreateInstance(choose.SelectedType, true) as Material;
         if (material != null) {
             UnifiedScenesRepository.CurrentEditingScene.Materials.Add(material);
         }
     }
     this.Refresh();
 }