예제 #1
0
        /// <summary>
        /// 提示框
        /// </summary>
        /// <param name="title">标题</param>
        /// <param name="msg">内容</param>
        private void FlowInforNotice(string title, string msg, bool bAutoHide)
        {
            WindowListeners listeners = new WindowListeners();

            listeners.BeforeShow.Handler = string.Concat(BarLabel.ClientID, ".setText('" + title + "');");
            stub = msg;
            Notification.Show(new NotificationConfig
            {
                Title        = "报警消息",
                Icon         = Icon.Information,
                Height       = 170,
                AutoHide     = bAutoHide,
                CloseVisible = true,
                ContentEl    = "customEl",
                Listeners    = listeners
            });
        }
        /// <summary>
        /// 提示框
        /// </summary>
        /// <param name="title">标题</param>
        /// <param name="msg">内容</param>
        private void AlarmInforNotice(string title, string msg1, string msg2, string msg3, bool bAutoHide)
        {
            WindowListeners listeners = new WindowListeners();

            listeners.BeforeShow.Handler = string.Concat(BarLabel.ClientID, ".setText('" + title + "');");
            stub  = msg1;
            stub1 = msg2;
            stub2 = msg3;

            Notification.Show(new NotificationConfig
            {
                Title        = GetLangStr("AlarmMonitor28", "报警消息"),
                Icon         = Icon.Information,
                Height       = 170,
                AutoHide     = bAutoHide,
                CloseVisible = true,
                ContentEl    = "customEl",
                Listeners    = listeners
            });
        }