Ejemplo n.º 1
0
 private void OnUserInitiatedBuild(object sender, BuildCommandEventArgs e)
 {
     _userStartedBuildAction = true;
     if (e == null || !e.IsBuildClean)
     {
         return;
     }
     _isBuildClean = true;
 }
Ejemplo n.º 2
0
 int IOleCommandTarget.Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 {
     if (pvaOut == IntPtr.Zero && (BuildCommandIntercepter.IsBuildCommand(pguidCmdGroup, nCmdID) || this.IsProgrammaticBuildCmd(pguidCmdGroup, nCmdID)))
     {
         EventHandler <BuildCommandEventArgs> userInitiatedBuild = this.userInitiatedBuild;
         if (userInitiatedBuild != null)
         {
             BuildCommandEventArgs e = new BuildCommandEventArgs(this.IsBuildClean(pguidCmdGroup, nCmdID));
             userInitiatedBuild((object)this, e);
         }
     }
     return(-2147221248);
 }