private void ListPomsMouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { ProjectContextMenuStrip.Show(_listPoms, e.Location); } }
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; } }