private void DownloadCSV() { IOUtils file = new IOUtils(); ISdmxObjects sdmxObjects = null; DataTable dt = new DataTable(); sdmxObjects = GetSdmxObjects(); if (sdmxObjects == null) return; AddExportColumns(dt); PopolateDataTable(dt, sdmxObjects); string mySeparator = txtSeparator.Text.Trim().Equals( string.Empty ) ? ";" : txtSeparator.Text.Trim(); file.SaveCSVFile(dt, GetFilename(), mySeparator, txtDelimiter.Text); }