Esempio n. 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);
            }
        }
Esempio n. 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);
            }
        }
Esempio n. 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);
        }
Esempio n. 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);
     }
 }