public void ShowContextMenu(VisualGitCommandMenu menu, System.Drawing.Point location) { ShowContextMenu(menu, location.X, location.Y); }
public void ShowContextMenu(VisualGitCommandMenu menu, int x, int y) { IMenuCommandService mcs = GetService<IMenuCommandService>(); IVsUIShell shell = GetService<IVsUIShell>(); if (mcs != null) { try { mcs.ShowContextMenu(new CommandID(VisualGitId.CommandSetGuid, (int)menu), x, y); } catch (COMException) { /* Menu is not declared correctly (no items) */ } } }