コード例 #1
0
ファイル: Package.cs プロジェクト: Plankankul/SpecSharp
 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);
     }
 }
コード例 #2
0
 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);
     }
 }