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); }
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); }