private void OnConditionAdd(object sender, EventArgs e) { EcasCondition eNew = new EcasCondition(); EcasConditionForm dlg = new EcasConditionForm(); dlg.InitEx(eNew); if (UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK) { m_trigger.ConditionCollection.Add(eNew); UpdateConditionListEx(false); } }
private void OnConditionEdit(object sender, EventArgs e) { ListView.SelectedListViewItemCollection lvsic = m_lvConditions.SelectedItems; if ((lvsic == null) || (lvsic.Count == 0)) { return; } EcasConditionForm dlg = new EcasConditionForm(); dlg.InitEx(lvsic[0].Tag as EcasCondition); if (UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK) { UpdateConditionListEx(true); } }
private void OnConditionEdit(object sender, EventArgs e) { ListView.SelectedListViewItemCollection lvsic = m_lvConditions.SelectedItems; if((lvsic == null) || (lvsic.Count == 0)) return; EcasConditionForm dlg = new EcasConditionForm(); dlg.InitEx(lvsic[0].Tag as EcasCondition); if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK) UpdateConditionListEx(true); }
private void OnConditionAdd(object sender, EventArgs e) { EcasCondition eNew = new EcasCondition(); EcasConditionForm dlg = new EcasConditionForm(); dlg.InitEx(eNew); if(UIUtil.ShowDialogAndDestroy(dlg) == DialogResult.OK) { m_trigger.ConditionCollection.Add(eNew); UpdateConditionListEx(false); } }