private void btnAdd_Click(object sender, EventArgs e) { try { IncidenceDatasetDefinition frm = new IncidenceDatasetDefinition(); DialogResult rtn = frm.ShowDialog(); BindControls(); } catch (Exception ex) { Logger.LogError(ex.Message); } }
private void btnEdit_Click(object sender, EventArgs e) { string msg = string.Empty; string dataSetName = lstAvailableDataSets.GetItemText(lstAvailableDataSets.SelectedItem); try { if (dataSetName == string.Empty) { return; } IncidenceDatasetDefinition frm = new IncidenceDatasetDefinition(dataSetName, Convert.ToInt32(_dataSetID)); DialogResult rtn = frm.ShowDialog(); { BindControls(); } } catch (Exception ex) { Logger.LogError(ex.Message); } }