private void OnBtnAdd(object sender, EventArgs e)
        {
            EcasTrigger     tNew = new EcasTrigger(true);
            EcasTriggerForm f    = new EcasTriggerForm();

            f.InitEx(tNew, false, m_ilIcons);
            if (f.ShowDialog() == DialogResult.OK)
            {
                m_triggers.TriggerCollection.Add(tNew);
                UpdateTriggerListEx(false);
            }
        }
        private void OnBtnEdit(object sender, EventArgs e)
        {
            ListView.SelectedListViewItemCollection lvsic = m_lvTriggers.SelectedItems;
            if ((lvsic == null) || (lvsic.Count == 0))
            {
                return;
            }

            EcasTriggerForm dlg = new EcasTriggerForm();

            dlg.InitEx(lvsic[0].Tag as EcasTrigger, true, m_ilIcons);
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                UpdateTriggerListEx(true);
            }
        }
		private void OnBtnEdit(object sender, EventArgs e)
		{
			ListView.SelectedListViewItemCollection lvsic = m_lvTriggers.SelectedItems;
			if((lvsic == null) || (lvsic.Count == 0)) return;

			EcasTriggerForm dlg = new EcasTriggerForm();
			dlg.InitEx(lvsic[0].Tag as EcasTrigger, true, m_ilIcons);
			if(dlg.ShowDialog() == DialogResult.OK)
				UpdateTriggerListEx(true);
		}
		private void OnBtnAdd(object sender, EventArgs e)
		{
			EcasTrigger tNew = new EcasTrigger(true);
			EcasTriggerForm f = new EcasTriggerForm();
			f.InitEx(tNew, false, m_ilIcons);
			if(f.ShowDialog() == DialogResult.OK)
			{
				m_triggers.TriggerCollection.Add(tNew);
				UpdateTriggerListEx(false);
			}
		}