private void Page_Load(object sender, System.EventArgs e)
 {
     try
     {
         effority.Ealo.StringInfo objText = null;
         objText = effority.Ealo.Controller.GetStringByQualifierAndStringName(Consts.DesktopHTMLQualifier, ModuleId.ToString(), System.Threading.Thread.CurrentThread.CurrentCulture.Name, true);
         string strContent = "";
         if ((objText != null))
         {
             strContent = Server.HtmlDecode((string)objText.StringText);
         }
         ltContent.Text = strContent;
         UI.Skins.Skin ParentSkin = UI.Skins.Skin.GetParentSkin(this);
         if ((ParentSkin != null))
         {
             ParentSkin.RegisterModuleActionEvent(this.ModuleId, ModuleAction_Click);
         }
         if (strContent == "")
         {
             if (System.Threading.Thread.CurrentThread.CurrentCulture.ToString() != Common.Globals.GetPortalSettings().DefaultLanguage)
             {
                 ContainerControl.Visible = false;
             }
         }
     }
     catch (Exception exc)
     {
         Exceptions.ProcessModuleLoadException(this, exc);
     }
 }
示例#2
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// Helper method that can be used to add an ActionEventHandler to the Skin for this
 /// Module Control
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <history>
 ///   [cnurse] 17/9/2004  Added Documentation
 /// </history>
 /// -----------------------------------------------------------------------------
 protected void AddActionHandler(ActionEventHandler e)
 {
     UI.Skins.Skin ParentSkin = UI.Skins.Skin.GetParentSkin(this);
     if (ParentSkin != null)
     {
         ParentSkin.RegisterModuleActionEvent(ModuleId, e);
     }
 }
示例#3
0
 public static UI.Skins.Controls.ModuleMessage GetModuleMessageControl(string Heading, string Message, Controls.ModuleMessage.ModuleMessageType objModuleMessageType, string IconImage)
 {
     UI.Skins.Controls.ModuleMessage objModuleMessage;
     UI.Skins.Skin s = new UI.Skins.Skin();
     objModuleMessage           = (UI.Skins.Controls.ModuleMessage)s.LoadControl("~/admin/skins/ModuleMessage.ascx");
     objModuleMessage.Heading   = Heading;
     objModuleMessage.Text      = Message;
     objModuleMessage.IconImage = IconImage;
     objModuleMessage.IconType  = objModuleMessageType;
     return(objModuleMessage);
 }
示例#4
0
 /// <summary>
 /// Helper method that can be used to add an ActionEventHandler to the Skin for this
 /// Module Control
 /// </summary>
 /// <remarks>
 /// </remarks>
 protected void AddActionHandler(ActionEventHandler e)
 {
     //This finds a reference to the containing skin
     UI.Skins.Skin ParentSkin = UI.Skins.Skin.GetParentSkin(this);
     //We should always have a ParentSkin, but need to make sure
     if (ParentSkin != null)
     {
         //Register our EventHandler as a listener on the ParentSkin so that it may tell us
         //when a menu has been clicked.
         ParentSkin.RegisterModuleActionEvent(this.ModuleId, e);
     }
 }
示例#5
0
 public static UI.Skins.Controls.ModuleMessage GetModuleMessageControl(string Heading, string Message, Controls.ModuleMessage.ModuleMessageType objModuleMessageType, string IconImage)
 {
     UI.Skins.Controls.ModuleMessage objModuleMessage;
     UI.Skins.Skin s = new UI.Skins.Skin();
     objModuleMessage = (UI.Skins.Controls.ModuleMessage)s.LoadControl("~/admin/skins/ModuleMessage.ascx");
     objModuleMessage.Heading = Heading;
     objModuleMessage.Text = Message;
     objModuleMessage.IconImage = IconImage;
     objModuleMessage.IconType = objModuleMessageType;
     return objModuleMessage;
 }
示例#6
0
 public static void AddPageMessage(UI.Skins.Skin objSkin, string Heading, string Message, UI.Skins.Controls.ModuleMessage.ModuleMessageType objModuleMessageType)
 {
     AddPageMessage(objSkin, Heading, Message, objModuleMessageType, Null.NullString);
 }
示例#7
0
 public static void AddPageMessage(UI.Skins.Skin objSkin, string Heading, string Message, string IconSrc)
 {
     AddPageMessage(objSkin, Heading, Message, ModuleMessage.ModuleMessageType.GreenSuccess, IconSrc);
 }