コード例 #1
0
        private void FrmDiscreteAlarm_Load(object sender, System.EventArgs e)
        {
            objAlarmManager = AlarmManagers.GetAlarmManager();
            string xmlFile = objAlarmManager.ReadKey(AlarmManagers.XML_NAME_DEFAULT);

            if (string.IsNullOrEmpty(xmlFile) || string.IsNullOrWhiteSpace(xmlFile))
            {
                return;
            }

            InitializeData(xmlFile);
        }
コード例 #2
0
        public HMIAlarm()
        {
            InitializeComponent();
            dbCurrent       = new List <ClassAlarm>();
            objAlarmManager = AlarmManagers.GetAlarmManager();
            string xmlFile = objAlarmManager.ReadKey(AlarmManagers.XML_NAME_DEFAULT);

            if (string.IsNullOrEmpty(xmlFile) || string.IsNullOrWhiteSpace(xmlFile))
            {
                return;
            }

            dbCurrent = InitializeData(xmlFile);
        }