private void btn_Click(object sender, EventArgs e) { try { VariableDataSetDefinition frm = new VariableDataSetDefinition(); DialogResult rtn = frm.ShowDialog(); if (rtn != DialogResult.OK) { return; } ExportDataForlistbox(); } catch (Exception ex) { Logger.LogError(ex); } }
private void btnEdit_Click(object sender, EventArgs e) { try { if (lstAvailable.SelectedItem == null) { return; } string str = lstAvailable.GetItemText(lstAvailable.SelectedItem); VariableDataSetDefinition frm = new VariableDataSetDefinition(str); DialogResult rth = frm.ShowDialog(); ExportDataForlistbox(); } catch (Exception ex) { Logger.LogError(ex); } }