Пример #1
0
 public static UI.Skins.Controls.ModuleMessage GetModuleMessageControl(string Heading, string Message, UI.Skins.Controls.ModuleMessage.ModuleMessageType objModuleMessageType)
 {
     return(GetModuleMessageControl(Heading, Message, objModuleMessageType, Null.NullString));
 }
Пример #2
0
 public static void AddPageMessage(Page objPage, string Heading, string Message, UI.Skins.Controls.ModuleMessage.ModuleMessageType objModuleMessageType)
 {
     AddPageMessage(objPage, Heading, Message, objModuleMessageType, Null.NullString);
 }
Пример #3
0
 public static void AddModuleMessage(Control objControl, string Message, UI.Skins.Controls.ModuleMessage.ModuleMessageType objModuleMessageType)
 {
     AddModuleMessage(objControl, "", Message, objModuleMessageType, Null.NullString);
 }
Пример #4
0
 public static void AddModuleMessage(PortalModuleBase objControl, string Heading, string Message, UI.Skins.Controls.ModuleMessage.ModuleMessageType objModuleMessageType)
 {
     AddModuleMessage(objControl, Heading, Message, objModuleMessageType, Null.NullString);
 }
Пример #5
0
 private static void AddPageMessage(Control objControl, string Heading, string Message, UI.Skins.Controls.ModuleMessage.ModuleMessageType objModuleMessageType, string IconSrc)
 {
     if (!String.IsNullOrEmpty(Message))
     {
         Control ContentPane = (Control)objControl.FindControl(Common.Globals.glbDefaultPane);
         if (ContentPane != null)
         {
             UI.Skins.Controls.ModuleMessage objModuleMessage;
             objModuleMessage = GetModuleMessageControl(Heading, Message, objModuleMessageType, IconSrc);
             ContentPane.Controls.AddAt(0, objModuleMessage);
         }
     }
 }
Пример #6
0
 private static void AddModuleMessage(Control objControl, string Heading, string Message, UI.Skins.Controls.ModuleMessage.ModuleMessageType objModuleMessageType, string IconSrc)
 {
     if (objControl != null)
     {
         if (!String.IsNullOrEmpty(Message))
         {
             PlaceHolder MessagePlaceHolder = (PlaceHolder)objControl.Parent.FindControl("MessagePlaceHolder");
             if (MessagePlaceHolder != null)
             {
                 MessagePlaceHolder.Visible = true;
                 UI.Skins.Controls.ModuleMessage objModuleMessage;
                 objModuleMessage = GetModuleMessageControl(Heading, Message, objModuleMessageType, IconSrc);
                 MessagePlaceHolder.Controls.Add(objModuleMessage);
             }
         }
     }
 }