Exemplo n.º 1
0
        private void OnEventAdd(object sender, EventArgs e)
        {
            EcasEvent eNew = new EcasEvent();

            eNew.Type = EcasEventIDs.AppLoadPost;

            EcasEventForm dlg = new EcasEventForm();

            dlg.InitEx(eNew);
            if (UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
            {
                m_trigger.EventCollection.Add(eNew);
                UpdateEventListEx(false);
            }
        }
Exemplo n.º 2
0
        private void OnEventEdit(object sender, EventArgs e)
        {
            ListView.SelectedListViewItemCollection lvsic = m_lvEvents.SelectedItems;
            if ((lvsic == null) || (lvsic.Count == 0))
            {
                return;
            }

            EcasEventForm dlg = new EcasEventForm();

            dlg.InitEx(lvsic[0].Tag as EcasEvent);
            if (UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
            {
                UpdateEventListEx(true);
            }
        }
Exemplo n.º 3
0
        private void OnEventEdit(object sender, EventArgs e)
        {
            ListView.SelectedListViewItemCollection lvsic = m_lvEvents.SelectedItems;
            if((lvsic == null) || (lvsic.Count == 0)) return;

            EcasEventForm dlg = new EcasEventForm();
            dlg.InitEx(lvsic[0].Tag as EcasEvent);
            if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
                UpdateEventListEx(true);
        }
Exemplo n.º 4
0
        private void OnEventAdd(object sender, EventArgs e)
        {
            EcasEvent eNew = new EcasEvent();
            eNew.Type = EcasEventIDs.AppLoadPost;

            EcasEventForm dlg = new EcasEventForm();
            dlg.InitEx(eNew);
            if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK)
            {
                m_trigger.EventCollection.Add(eNew);
                UpdateEventListEx(false);
            }
        }