public int Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) { if (taskListMenu != null) { return(taskListMenu.Exec(ref pguidCmdGroup, nCmdID, nCmdexecopt, pvaIn, pvaOut)); } else { return(OLECMDERR.OLECMDERR_E_NOTSUPPORTED); } }
public int Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) { if (taskListMenu != null) { var start = DateTime.Now; try { return(taskListMenu.Exec(ref pguidCmdGroup, nCmdID, nCmdexecopt, pvaIn, pvaOut)); } finally { Debug.WriteLine("Exec: {0}", ElapsedSince(start)); } } else { return(OLECMDERR.OLECMDERR_E_NOTSUPPORTED); } }