示例#1
0
        /// <summary>
        /// panel: 走马灯使用的panel,current:当前警报列表,history:历史警报列表,alarmList:警报信息
        /// </summary>
        /// <param name="panel"></param>
        /// <param name="current"></param>
        /// <param name="history"></param>
        /// <param name="alarmList"></param>
        private Alarm_Helper(Panel panel, ListBox current, ListBox history, Alarm_Data alarmData)
        {
            this.currentListBox = current;
            this.historyListBox = history;
            //this.AlarmList = alarmList;
            this.alarm_Data = alarmData;
            this.panel      = panel;
            this.font       = panel.Font;

            this.Create_ScrolLights();
        }
示例#2
0
        /// <summary>
        /// panel: 走马灯使用的panel,current:当前警报列表,history:历史警报列表
        /// </summary>
        /// <param name="panel"></param>
        /// <param name="current"></param>
        /// <param name="history"></param>
        public Alarm_Helper(Panel panel, ListBox current, ListBox history)
        {
            this.currentListBox = current;
            this.historyListBox = history;
            //this.AlarmList = alarmList;
            this.alarm_Data = new Alarm_Data();
            this.panel      = panel;
            this.font       = panel.Font;

            this.Create_ScrolLights();
            //将报警文件写入到listbox中
            this.Set_History_Alarm_To_ListBox();
        }