public void SetTriggerInfos(TriggerInfos triggerInfos)
        {
            m_TriggerInfos.Clear();

            m_IsCheckBoxScan          = triggerInfos.m_AllowTrigger;
            this.CheckBoxScan.Checked = triggerInfos.m_AllowTrigger;
            this.ListViewScan.Enabled = triggerInfos.m_AllowTrigger;

            foreach (var item in triggerInfos.m_TriggerInfos)
            {
                ListViewItem listViewItem = new ListViewItem(item.m_strTriggerName);

                ListViewItem.ListViewSubItem listViewSubItem = new ListViewItem.ListViewSubItem(listViewItem, item.m_strStockFile);
                listViewItem.SubItems.Add(listViewSubItem);

                ListViewItem.ListViewSubItem listViewSubItem2 = new ListViewItem.ListViewSubItem(listViewItem, item.m_strOpenSRFile);
                listViewItem.SubItems.Add(listViewSubItem2);

                ListViewItem.ListViewSubItem listViewSubItem3 = new ListViewItem.ListViewSubItem(listViewItem, item.m_strOpenUTMR_DTMSFile);
                listViewItem.SubItems.Add(listViewSubItem3);

                m_TriggerInfos.Add(listViewItem, item);
                this.ListViewScan.Items.Add(listViewItem);
            }
        }
        public TriggerInfos GetTriggerInfos()
        {
            TriggerInfos triggerInfos = new TriggerInfos();

            triggerInfos.m_AllowTrigger = this.CheckBoxScan.Checked;


            List <TriggerInfos.TriggerInfo> triggerInfoList = new List <TriggerInfos.TriggerInfo>();

            for (int iIndex = 0; iIndex < this.ListViewScan.Items.Count; iIndex++)
            {
                ListViewItem listViewItem = this.ListViewScan.Items[iIndex];

                TriggerInfos.TriggerInfo triggerInfo = null;
                if (m_TriggerInfos.TryGetValue(listViewItem, out triggerInfo) == true)
                {
                    triggerInfoList.Add(triggerInfo);
                }
            }

            triggerInfos.m_TriggerInfos = triggerInfoList.ToArray();

            return(triggerInfos);
        }