Exemplo 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);
            }
        }
Exemplo 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);
            }
        }
Exemplo 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);
        }
Exemplo 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);
     }
 }