예제 #1
0
        private void OnConditionAdd(object sender, EventArgs e)
        {
            EcasCondition     eNew = new EcasCondition();
            EcasConditionForm dlg  = new EcasConditionForm();

            dlg.InitEx(eNew);
            if (UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
            {
                m_trigger.ConditionCollection.Add(eNew);
                UpdateConditionListEx(false);
            }
        }
예제 #2
0
        private void OnConditionEdit(object sender, EventArgs e)
        {
            ListView.SelectedListViewItemCollection lvsic = m_lvConditions.SelectedItems;
            if ((lvsic == null) || (lvsic.Count == 0))
            {
                return;
            }

            EcasConditionForm dlg = new EcasConditionForm();

            dlg.InitEx(lvsic[0].Tag as EcasCondition);
            if (UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
            {
                UpdateConditionListEx(true);
            }
        }
예제 #3
0
        private void OnConditionEdit(object sender, EventArgs e)
        {
            ListView.SelectedListViewItemCollection lvsic = m_lvConditions.SelectedItems;
            if((lvsic == null) || (lvsic.Count == 0)) return;

            EcasConditionForm dlg = new EcasConditionForm();
            dlg.InitEx(lvsic[0].Tag as EcasCondition);
            if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
                UpdateConditionListEx(true);
        }
예제 #4
0
 private void OnConditionAdd(object sender, EventArgs e)
 {
     EcasCondition eNew = new EcasCondition();
     EcasConditionForm dlg = new EcasConditionForm();
     dlg.InitEx(eNew);
     if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
     {
         m_trigger.ConditionCollection.Add(eNew);
         UpdateConditionListEx(false);
     }
 }