private void btnNew_Click(object sender, RoutedEventArgs e) { Form_AlertCreator fcc = new Form_AlertCreator(_host) { Owner = this }; if (fcc.ShowDialog() == true) { PopulateAlertList(); } }
private void btnEdit_Click(object sender, RoutedEventArgs e) { if (lbConditionList.SelectedItem == null) { return; } Form_AlertCreator fac = new Form_AlertCreator(_host, (Alert)lbConditionList.SelectedItem) { Owner = this }; if (fac.ShowDialog() == true) { PopulateAlertList(); } }