Esempio n. 1
0
 public int QueryStatus(ref Guid pguidCmdGroup, uint cCmds, OLECMD[] prgCmds, IntPtr pCmdText)
 {
     if (taskListMenu != null)
     {
         return(taskListMenu.QueryStatus(ref pguidCmdGroup, cCmds, prgCmds, pCmdText));
     }
     else
     {
         return(OLECMDERR.OLECMDERR_E_UNKNOWNGROUP);
     }
 }
Esempio n. 2
0
 public int QueryStatus(ref Guid pguidCmdGroup, uint cCmds, OLECMD[] prgCmds, IntPtr pCmdText)
 {
     if (taskListMenu != null)
     {
         var start = DateTime.Now;
         try
         {
             return(taskListMenu.QueryStatus(ref pguidCmdGroup, cCmds, prgCmds, pCmdText));
         }
         finally
         {
             Debug.WriteLine("QueryStatus: {0}", ElapsedSince(start));
         }
     }
     else
     {
         return(OLECMDERR.OLECMDERR_E_UNKNOWNGROUP);
     }
 }