コード例 #1
0
 private void ListPomsMouseClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         ProjectContextMenuStrip.Show(_listPoms, e.Location);
     }
 }
コード例 #2
0
 private void TreePomsNodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         _treePoms.SelectedNode = e.Node;
         ProjectContextMenuStrip.Show(_treePoms, e.Location);
     }
     else
     {
         _treePoms.SelectedNode = e.Node;
     }
 }