コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = HeaderStringHelper.GetPageTitle(Resources.Resource.Backup);
            Master.DisabledSidePanel = true;

            PersonalHelper.AdjustTopNavigator(Master.TopStudioPanel, PersonalPart.Backup);

            _backupContainer.CurrentPageCaption = Resources.Resource.Backup;
            _backupContainer.Body.Controls.Add(LoadControl(Backup.Location));
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = HeaderStringHelper.GetPageTitle(Resources.Resource.Profile);
            Master.DisabledSidePanel = true;

            PersonalHelper.AdjustTopNavigator(Master.TopStudioPanel, PersonalPart.Profile);

            _myStaffContainer.CurrentPageCaption = Resources.Resource.Profile;

            var userProfileControl = (UserProfileControl)LoadControl(UserProfileControl.Location);

            userProfileControl.UserProfileHelper = new ProfileHelper(SecurityContext.CurrentAccount.ID.ToString());

            _myStaffContainer.Body.Controls.Add(userProfileControl);
        }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = HeaderStringHelper.GetPageTitle(Resources.Resource.Administration);
            Master.DisabledSidePanel = true;

            PersonalHelper.AdjustTopNavigator(Master.TopStudioPanel, PersonalPart.Settings);

            _settingsContainer.CurrentPageCaption = Resources.Resource.Administration;

            //language
            _timelngHolder.Controls.Add(LoadControl(TimeAndLanguage.Location));

            //themes
            //    _themesHolder.Controls.Add(LoadControl(SkinSettings.Location));
        }
コード例 #4
0
ファイル: backup.aspx.cs プロジェクト: Wifisoft/teamlab.v6.5
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = HeaderStringHelper.GetPageTitle(Resources.Resource.Backup, null, null);
            (this.Master as StudioTemplate).DisabledSidePanel = true;

            var topNavigator = (this.Master as StudioTemplate).TopNavigationPanel;

            PersonalHelper.AdjustTopNavigator(topNavigator, PersonalPart.Backup);

            _backupContainer.BreadCrumbs = new List <BreadCrumb>();
            _backupContainer.BreadCrumbs.Add(new BreadCrumb()
            {
                Caption = Resources.Resource.Backup
            });
            _backupContainer.Body.Controls.Add(LoadControl(Backup.Location));
        }
コード例 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = HeaderStringHelper.GetPageTitle(Resources.Resource.Administration, null, null);
            (this.Master as StudioTemplate).DisabledSidePanel = true;

            var topNavigator = (this.Master as StudioTemplate).TopNavigationPanel;

            PersonalHelper.AdjustTopNavigator(topNavigator, PersonalPart.Settings);

            _settingsContainer.BreadCrumbs = new List <BreadCrumb>();
            _settingsContainer.BreadCrumbs.Add(new BreadCrumb()
            {
                Caption = Resources.Resource.Administration
            });

            //language
            _timelngHolder.Controls.Add(LoadControl(TimeAndLanguage.Location));

            //themes
            _themesHolder.Controls.Add(LoadControl(SkinSettings.Location));
        }
コード例 #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = HeaderStringHelper.GetPageTitle(Resources.Resource.Profile, null, null);
            (this.Master as StudioTemplate).DisabledSidePanel = true;

            var topNavigator = (this.Master as StudioTemplate).TopNavigationPanel;

            PersonalHelper.AdjustTopNavigator(topNavigator, PersonalPart.Profile);

            _myStaffContainer.BreadCrumbs = new List <BreadCrumb>();
            _myStaffContainer.BreadCrumbs.Add(new BreadCrumb()
            {
                Caption = Resources.Resource.Profile
            });

            var userProfileControl = LoadControl(UserProfileControl.Location) as UserProfileControl;

            userProfileControl.UserInfo    = CoreContext.UserManager.GetUsers(SecurityContext.CurrentAccount.ID);
            userProfileControl.MyStaffMode = true;

            _myStaffContainer.Body.Controls.Add(userProfileControl);
        }