Ejemplo n.º 1
0
 private bool Refresh()
 {
     if (IsWebProject)
     {
         VSWebSite website = this.project.Object as VSWebSite;
         if (website != null)
         {
             website.Refresh();
             return(true);
         }
     }
     else
     {
         VSProject2 project = this.project.Object as VSProject2;
         if (project != null)
         {
             project.Refresh();
             return(true);
         }
     }
     return(false);
 }
Ejemplo n.º 2
0
 private bool Refresh()
 {
     ThreadHelper.ThrowIfNotOnUIThread();
     if (IsWebProject)
     {
         VSWebSite website = this.project.Object as VSWebSite;
         if (website != null)
         {
             website.Refresh();
             return(true);
         }
     }
     else
     {
         VSProject2 project = this.project.Object as VSProject2;
         if (project != null)
         {
             project.Refresh();
             return(true);
         }
     }
     return(false);
 }