private void addTrigger_Click(object sender, EventArgs e) { TriggerForm triggerForm = new TriggerForm(); triggerForm.ShowDialog(); GetTriggerResult(triggerForm); }
private void triggersValue_SelectedIndexChanged(object sender, EventArgs e) { if (triggersValue.SelectedIndex != -1) { TriggerForm triggerForm = new TriggerForm(_itemTriggers[triggersValue.SelectedIndex].AsBsonDocument); triggerForm.ShowDialog(); GetTriggerResult(triggerForm); } }