private void TourPackageButton_Click( object sender, EventArgs e )
        {
            try {
                String curTourFolder = Properties.Settings.Default.ExportDirectory;
                if ( myTourRow != null ) {
                    using (FolderBrowserDialog curFolderDialog = new FolderBrowserDialog()) {
                        curFolderDialog.ShowNewFolderButton = true;
                        curFolderDialog.RootFolder = Environment.SpecialFolder.Desktop;
                        curFolderDialog.SelectedPath = @curTourFolder;
                        if (FolderBrowserLauncher.ShowFolderBrowser( curFolderDialog, Form.ActiveForm ) == DialogResult.OK) {
                            curTourFolder = curFolderDialog.SelectedPath;
                        }
                    }
                    writeTourIdentDataFile( myTourRow, curTourFolder );

                    ExportTourSummary myExportTourSummary = new ExportTourSummary();
                    myExportTourSummary.ExportData();

                    ExportData myExportData = new ExportData();
                    String curTourDataFileName = curTourFolder;
                    if (curTourFolder.Substring( curTourFolder.Length - 1 ).Equals( "\\" )) {
                        curTourDataFileName += mySanctionNum + "TS.txt";
                    } else {
                        curTourDataFileName += "\\" + mySanctionNum + "TS.txt";
                    }
                    myExportData.exportTourData( mySanctionNum, curTourDataFileName );

                    Cursor.Current = Cursors.WaitCursor;
                    ArrayList curFileFilterList = getEndOfTourReportList( mySanctionNum, myTourClass );
                    ZipUtil.ZipFiles( curTourFolder, mySanctionNum + myTourClass + ".zip", curFileFilterList );
                    TourPackageButton.BeginInvoke( (MethodInvoker)delegate() {
                        Application.DoEvents();
                        Cursor.Current = Cursors.Default;
                    } );
                }
            } catch ( Exception ex ) {
                MessageBox.Show( "Exception selecting and compressing selected files from specified folder " + "\n\nError: " + ex.Message );
            }
        }
        private void navExport_Click(object sender, EventArgs e)
        {
            // Display the form as a modal dialog box.
            exportDialogForm = new TourExportDialogForm();
            exportDialogForm.ShowDialog(this);

            // Determine if the OK button was clicked on the dialog box.
            if (exportDialogForm.DialogResult == DialogResult.OK) {
                String exportCommand = exportDialogForm.ExportCommand;
                if (exportCommand.ToLower().Equals("list")) {
                    winStatusMsg.Text = "Export list of tournaments";

                    ExportData myExportData = new ExportData();
                    myExportData.exportData("Tournament", "Select * from Tournament");
                } else if (exportCommand.ToLower().Equals("data")) {
                    winStatusMsg.Text = "Export all data for tournament " + editName.Text;

                    ExportData myExportData = new ExportData();
                    myExportData.exportTourData(editSanctionId.Text);
                } else if (exportCommand.ToLower().Equals("perf")) {
                    winStatusMsg.Text = "Export performance data for tournament " + TourName;
                    ExportPerfData myExportData = new ExportPerfData();
                    myExportData.exportTourPerfData(editSanctionId.Text);
                }
            }
        }