Esempio n. 1
0
 protected void ManageGettingStarted()
 {
     // The Getting Started dialog can be also opened from the Control Bar, also do not show getting started in popup.
     var controller = new GettingStartedController();
     if (!controller.ShowOnStartup || UrlUtils.InPopUp())
     {
         return;
     }
     var gettingStarted = DnnGettingStarted.GetCurrent(Page);
     if (gettingStarted == null)
     {
         gettingStarted = new DnnGettingStarted();
         Page.Form.Controls.Add(gettingStarted);
     }
     gettingStarted.ShowOnStartup = true;
 }
Esempio n. 2
0
 protected void ManageGettingStarted()
 {
     // The Getting Started dialog can be also opened from the Control Bar, also do not show getting started in popup.
     var controller = new GettingStartedController();
     if (!controller.ShowOnStartup || (HttpContext.Current != null && HttpContext.Current.Request.Url.ToString().Contains("popUp=true")))
     {
         return;
     }
     var gettingStarted = DnnGettingStarted.GetCurrent(Page);
     if (gettingStarted == null)
     {
         gettingStarted = new DnnGettingStarted();
         Page.Form.Controls.Add(gettingStarted);
     }
     gettingStarted.ShowOnStartup = true;
 }
Esempio n. 3
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            //page will be null if the control panel initial twice, it will be removed in the second time.
            if (Page != null)
            {
                ID = "ControlBar";

                var gettingStarted = DnnGettingStarted.GetCurrent(Page);
                if (gettingStarted == null)
                {
                    gettingStarted = new DnnGettingStarted();
                    Page.Form.Controls.Add(gettingStarted);
                }
            }
        }
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            //page will be null if the control panel initial twice, it will be removed in the second time.
            if (Page != null)
            {
                ID = "ControlBar";

                var gettingStarted = DnnGettingStarted.GetCurrent(Page);
                if (gettingStarted == null)
                {
                    gettingStarted = new DnnGettingStarted();
                    Page.Form.Controls.Add(gettingStarted);
                }
                FileUploader = new DnnFileUpload {ID = "fileUploader", SupportHost = false};
                Page.Form.Controls.Add(FileUploader);

                LoadCustomMenuItems();
            }
        }