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