Esempio n. 1
0
        //================================================================================
        private void ExportAllFoundFilesToolStripMenuItemClick(object sender, EventArgs e)
        {
            if (foundItems == 0)
            {
                return;
            }
            if (lastQuery == "")
            {
                return;
            }

            if (foundItems > 1000)
            {
                string text = "Do you really want to export " +
                              foundItems.ToString() + " files?\r\nIt can be slow.";
                const string caption = "Export All";
                if (MessageBox.Show(text, caption, MessageBoxButtons.YesNo) != DialogResult.Yes)
                {
                    return;
                }
            }

            exportDlg.FileName = "backup";
            if (exportDlg.ShowDialog() == DialogResult.OK)
            {
                CajApp.exportAll(lastQuery, mnuQueryRegExp.Checked, exportDlg.FileName);
                txtStatusLabel.Text = "Saved: " + foundItems.ToString();
            }
        }