示例#1
0
 private void BuildList_MouseClick(object sender, MouseEventArgs e)
 {
     if (e.Button == System.Windows.Forms.MouseButtons.Right)
     {
         ListViewItem item = BuildList.GetItemAt(e.X, e.Y);
         if (item != null)
         {
             var proj = SolutionParser.ProjTable[item.Text];
             item.Selected = true;
             BuildContextMenu.Items[0].Enabled = proj.HasLog;
             BuildContextMenu.Items[1].Enabled = !builder.IsBuilding && proj.IsBuilt;
             BuildContextMenu.Show(BuildList, e.Location);
         }
     }
 }