Exemplo n.º 1
0
        private void ExportTables(ExportTableList exportTableList)
        {
            ExportToFile      exportToFile = ExportToFile.NewExportToFile(ServerNameTxtBox.Text, DestPathTxtBox.Text, StagePathTxtBox.Text);
            ExportFileOptions fileOptions  = GetExportFileOptions();
            ExportDataResults expResults   = exportToFile.ExportTables(exportTableList, fileOptions);

            DisplayResults(expResults);
        }
Exemplo n.º 2
0
        private ExportTableList GetTablesToExport()
        {
            ExportTableList exportList = new ExportTableList();

            foreach (DataGridViewRow row in this.TablesDataGridView.Rows)
            {
                DataGridViewCell cellExport    = row.Cells["Export?"];
                DataGridViewCell cellFilter    = row.Cells["Filter"];
                DataGridViewCell cellTableName = row.Cells["TableName"];
                DataGridViewCell cellPrefix    = row.Cells["Prefix Table Name?"];
                bool.TryParse(cellExport.Value.ToString(), out bool TableSelected);
                if (TableSelected)
                {
                    exportList.Add(new ExportTable(cellTableName.Value.ToString(), cellFilter?.Value?.ToString(), cellTableName.Value.ToString()));
                }
            }

            return(exportList);
        }