示例#1
0
        private void LoadDiscussionActionControl(Message discussion)
        {
            var discussionAction = (DiscussionAction)LoadControl(PathProvider.GetFileStaticRelativePath("Messages/DiscussionAction.ascx"));

            discussionAction.Discussion = discussion;
            Master.AddControl(discussionAction);
        }
示例#2
0
        protected override void PageLoad()
        {
            var action = UrlParameters.ActionType;

            if (RequestContext.IsInConcreteProject)
            {
                if (action.HasValue && action.Value == UrlAction.Edit)
                {
                    Master.AddControl(LoadControl(PathProvider.GetFileStaticRelativePath("Projects/ProjectAction.ascx")));
                }
            }
            else
            {
                if (action.HasValue && action.Value == UrlAction.Add)
                {
                    Master.AddControl(LoadControl(PathProvider.GetFileStaticRelativePath("Projects/ProjectAction.ascx")));
                }
            }
        }
示例#3
0
        protected override void PageLoad()
        {
            var action = UrlParameters.ActionType;

            if (RequestContext.IsInConcreteProject)
            {
                if (action.HasValue && action.Value == UrlAction.Edit)
                {
                    Master.AddControl(LoadControl(PathProvider.GetFileStaticRelativePath("Projects/ProjectAction.ascx")));

                    Title = HeaderStringHelper.GetPageTitle(ProjectResource.EditProject);
                }
            }
            else
            {
                if (action.HasValue && action.Value == UrlAction.Add)
                {
                    Master.AddControl(LoadControl(PathProvider.GetFileStaticRelativePath("Projects/ProjectAction.ascx")));

                    Title = HeaderStringHelper.GetPageTitle(ProjectResource.CreateNewProject);
                }
            }
        }