Пример #1
0
 private void loadedassemblymenu_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
 {
     if (e.ClickedItem.Name == "removefromproject")
     {
         NodeAssemblyData data = (NodeAssemblyData)objectview.SelectedNode.Tag;
         CurrentProject.RemoveManifest(data.AssemblyName);
         CurrentProject.Save(CurrentProjectFilename);
         data.Included   = false;
         data.Loaded     = false;
         data.Definition = null;
         if (objectview.SelectedNode.Tag == null)
         {
             objectview.SelectedNode.Parent.Nodes.Remove(objectview.SelectedNode);
         }
         else
         {
             objectview.SelectedNode.ImageKey         = "cross.png";
             objectview.SelectedNode.SelectedImageKey = "cross.png";
             objectview.SelectedNode.Nodes.Clear();
         }
     }
 }