private void btnExport_Click(object sender, EventArgs e) { try { if (DiskIO.IsValidPath(this.SelectedExportPath) && SelectedLanguages != null) { int i; if (DiskIO.DriveHasFreeSpace(SelectedExportPath, Program.currentProject.GetAllFilesVolume(out i))) { FileCopier[] allCopy = Program.currentProject.ExportTo(SelectedExportPath, SelectedLanguages); frmCopyProgress progressDlg = new frmCopyProgress(allCopy); if (progressDlg.ShowDialog(this) == DialogResult.OK) { this.DialogResult = DialogResult.OK; } } else { MessageBox.Show("There is no enough free space in selected drive. Please choose another location.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show("Please choose proper location for export.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } } catch (Exception exp) { Program.ShowExceptionData(exp); } }