using System; using System.Data; using System.Collections; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using CMS.UIControls; public partial class CMSModules_Notifications_Development_Notifications_Header : CMSNotificationsPage { protected void Page_Load(object sender, EventArgs e) { // Intialize the control SetupControl(); } #region "Private methods" /// /// Initializes the controls. /// private void SetupControl() { // Set the page title CurrentMaster.Title.TitleText = GetString("notifications.header.title"); CurrentMaster.Title.TitleImage = GetImageUrl("Objects/Notification_Gateway/object.png"); CurrentMaster.Title.HelpTopicName = "notification_gateways"; CurrentMaster.Title.HelpName = "helpTopic"; InitalizeMenu(); } /// /// Initialize the tab control on the master page. /// private void InitalizeMenu() { // Collect tabs data string[,] tabs = new string[2,4]; tabs[0, 0] = GetString("notifications.header.gateways"); tabs[0, 1] = "SetHelpTopic('helpTopic', 'notification_gateways');"; tabs[0, 2] = "Gateways/Gateway_List.aspx"; tabs[1, 0] = GetString("notifications.header.templates"); tabs[1, 1] = "SetHelpTopic('helpTopic', 'notification_templates');"; tabs[1, 2] = "Templates/Template_List.aspx"; // Set the target iFrame CurrentMaster.Tabs.UrlTarget = "notificationsContent"; // Assign tabs data CurrentMaster.Tabs.Tabs = tabs; } #endregion }