private void Bootstrap() { _hintPopupDeleteProject.Options.IsPopup = true; _hintPopupActiveTasks.Options.IsPopup = true; _hintPopupActiveMilestones.Options.IsPopup = true; if (Project != null && !ProjectSecurity.CanEdit(Project)) { Response.Redirect(PathProvider.BaseVirtualPath, true); } if (Project != null) { projectTitle.Text = Project.Title; projectDescription.Text = Project.Description; var tags = TagEngine.GetProjectTags(Project.ID).Select(r => r.Value).ToArray(); ProjectTags = string.Join(", ", tags); HasTemplates = false; Page.Title = HeaderStringHelper.GetPageTitle(Project.Title); UrlProject = "tasks.aspx?prjID=" + Project.ID; } else { Page.Title = HeaderStringHelper.GetPageTitle(ProjectResource.CreateNewProject); ProjectTags = ""; } }
private void Bootstrap() { ((IStudioMaster)Master).DisabledSidePanel = true; _hintPopupDeleteProject.Options.IsPopup = true; _hintPopupActiveTasks.Options.IsPopup = true; _hintPopupActiveMilestones.Options.IsPopup = true; if (!string.IsNullOrEmpty(UrlParameters.ProjectID)) { RequestContext.EnsureCurrentProduct(); } Project = RequestContext.GetCurrentProject(false); if (!ProjectSecurity.CanEdit(Project)) { Response.Redirect(ProjectsCommonResource.StartURL, true); } Master.BreadCrumbs.Add(new BreadCrumb { Caption = ProjectResource.Projects, NavigationUrl = "projects.aspx" }); if (Project == null) { Master.BreadCrumbs.Add(new BreadCrumb { Caption = ProjectResource.CreateNewProject, NavigationUrl = "" }); } else { Master.BreadCrumbs.Add(new BreadCrumb { Caption = Project.HtmlTitle, NavigationUrl = "projects.aspx?prjID=" + Project.ID }); Master.BreadCrumbs.Add(new BreadCrumb { Caption = ProjectResource.EditProject, NavigationUrl = "" }); projectTitle.Text = Project.Title; projectDescription.Text = Project.Description; var tags = TagEngine.GetProjectTags(Project.ID).Select(r => r.Value).ToArray(); projectTags.Text = string.Join(", ", tags); HasTemplates = false; } Title = HeaderStringHelper.GetPageTitle(ProjectResource.Projects, Master.BreadCrumbs); }