Exemple #1
0
        /// <summary>
        ///		Required method for Designer support - do not modify
        ///		the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            string sTheme = Page.Theme;

            if (String.IsNullOrEmpty(sTheme))
            {
                sTheme = "Sugar";
            }
            string sHeaderLeftPath = "~/App_MasterPages/" + Page.Theme + "/HeaderLeft.ascx";

            if (System.IO.File.Exists(MapPath(sHeaderLeftPath)))
            {
                ctlHeaderLeft = LoadControl(sHeaderLeftPath) as SplendidCRM.Themes.Sugar.HeaderLeft;
                if (ctlHeaderLeft != null)
                {
                    ctlHeaderLeft.Title = sTitle;
                    pnlHeader.Controls.Add(ctlHeaderLeft);
                }
            }
        }
 /// <summary>
 ///		Required method for Designer support - do not modify
 ///		the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     string sTheme = Page.Theme;
     if ( String.IsNullOrEmpty(sTheme) )
         sTheme = "Sugar";
     string sHeaderLeftPath = "~/App_MasterPages/" + Page.Theme + "/HeaderLeft.ascx";
     if ( System.IO.File.Exists(MapPath(sHeaderLeftPath)) )
     {
         ctlHeaderLeft = LoadControl(sHeaderLeftPath) as SplendidCRM.Themes.Sugar.HeaderLeft;
         if ( ctlHeaderLeft != null )
         {
             ctlHeaderLeft.Title = sTitle;
             pnlHeader.Controls.Add(ctlHeaderLeft);
         }
     }
 }