private void btnCopy_Click(object sender, EventArgs e) { frmCopyDataSource copyDataSource = new frmCopyDataSource((IdpeDataSource)lbSystemDataSources.SelectedItem); if (copyDataSource.ShowDialog() == DialogResult.OK) { Bind(); } }
private void mnuCopy_Click(object sender, EventArgs e) { frmCopyDataSource copyDataSource = new frmCopyDataSource(SelectedDataSource); if (copyDataSource.ShowDialog() == DialogResult.OK) { if (copyDataSource.NewDataSourceId > 0) { RefreshData(); } } }