/// <summary> /// Handles the SelectedIndexChanged event of the selExportDatabaseList control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void selExportDatabaseList_SelectedIndexChanged(object sender, EventArgs e) { lstView.Items.Clear(); lstSproc.Items.Clear(); lstTable.Items.Clear(); try { if (exportSession != null) { exportSession.Dispose(); } exportSession = exportFactory.CreateExportSession(SelectedDatabaseName); exportSession.ProgressEvent += ExportSession_ProgressEvent; } catch (SqlExporterException ex) { ShowError(ex.Message); return; } FillSprocList(); FillTableList(); FillViewList(); }
/// <summary> /// Handles the SelectedIndexChanged event of the selExportDatabaseList control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void selExportDatabaseList_SelectedIndexChanged(object sender, EventArgs e) { lstView.Items.Clear(); lstSproc.Items.Clear(); lstTable.Items.Clear(); try { _exportSession = _exportFactory.CreateExportSession(SelectedDatabaseName); _exportSession.ProgressEvent += ExportSession_ProgressEvent; } catch (SqlExporterException ex) { ShowError(ex.Message); return; } FillSprocList(); FillTableList(); FillViewList(); }