Ejemplo n.º 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 sShortcutsPath = "~/App_MasterPages/" + Page.Theme + "/Shortcuts.ascx";

            if (System.IO.File.Exists(MapPath(sShortcutsPath)))
            {
                ctlShortcuts = LoadControl(sShortcutsPath) as SplendidCRM.Themes.Sugar.Shortcuts;
                if (ctlShortcuts != null)
                {
                    ctlShortcuts.SubMenu = sSubMenu;
                    pnlShortcuts.Controls.Add(ctlShortcuts);
                }
            }
        }
Ejemplo n.º 2
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 sShortcutsPath = "~/App_MasterPages/" + Page.Theme + "/Shortcuts.ascx";
     if ( System.IO.File.Exists(MapPath(sShortcutsPath)) )
     {
         ctlShortcuts = LoadControl(sShortcutsPath) as SplendidCRM.Themes.Sugar.Shortcuts;
         if ( ctlShortcuts != null )
         {
             ctlShortcuts.SubMenu = sSubMenu;
             pnlShortcuts.Controls.Add(ctlShortcuts);
         }
     }
 }