Inheritance: System.Windows.Forms.Form
示例#1
0
        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(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
                UpdateTriggerListEx(true);
        }
示例#2
0
 private void OnBtnAdd(object sender, EventArgs e)
 {
     EcasTrigger tNew = new EcasTrigger(true);
     EcasTriggerForm f = new EcasTriggerForm();
     f.InitEx(tNew, false, m_ilIcons);
     if(UIUtil.ShowDialogAndDestroy(f) == DialogResult.OK)
     {
         m_triggers.TriggerCollection.Add(tNew);
         UpdateTriggerListEx(false);
     }
 }