示例#1
0
        private void OnActionAdd(object sender, EventArgs e)
        {
            EcasAction     eNew = new EcasAction();
            EcasActionForm dlg  = new EcasActionForm();

            dlg.InitEx(eNew);
            if (UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
            {
                m_trigger.ActionCollection.Add(eNew);
                UpdateActionListEx(false);
            }
        }
示例#2
0
        private void OnActionEdit(object sender, EventArgs e)
        {
            ListView.SelectedListViewItemCollection lvsic = m_lvActions.SelectedItems;
            if ((lvsic == null) || (lvsic.Count == 0))
            {
                return;
            }

            EcasActionForm dlg = new EcasActionForm();

            dlg.InitEx(lvsic[0].Tag as EcasAction);
            if (UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
            {
                UpdateActionListEx(true);
            }
        }
示例#3
0
        private void OnActionEdit(object sender, EventArgs e)
        {
            ListView.SelectedListViewItemCollection lvsic = m_lvActions.SelectedItems;
            if((lvsic == null) || (lvsic.Count == 0)) return;

            EcasActionForm dlg = new EcasActionForm();
            dlg.InitEx(lvsic[0].Tag as EcasAction);
            if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
                UpdateActionListEx(true);
        }
示例#4
0
 private void OnActionAdd(object sender, EventArgs e)
 {
     EcasAction eNew = new EcasAction();
     EcasActionForm dlg = new EcasActionForm();
     dlg.InitEx(eNew);
     if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
     {
         m_trigger.ActionCollection.Add(eNew);
         UpdateActionListEx(false);
     }
 }