/* Start Work */ private void startWork(object sender, EventArgs e) { // Make sure we have files if (fileList.Count == 0) return; // Get output filename string output_filename = FileSelectionDialog.SaveFile("Create Archive", String.Empty, String.Format("{0} ({1})|{1}", ArchiveFilters[archiveFormatList.SelectedIndex][0], ArchiveFilters[archiveFormatList.SelectedIndex][1])); if (output_filename == null || output_filename == String.Empty) return; // Set up our background worker BackgroundWorker bw = new BackgroundWorker(); bw.DoWork += delegate(object sender2, DoWorkEventArgs e2) { run(output_filename); }; //bw.DoWork += run; // Now, show our status status = new StatusMessage("Archive - Create", fileList.ToArray()); status.Show(); //status.Visible = false; bw.RunWorkerAsync(); }
/* Start Work */ private void startWork(object sender, EventArgs e) { // Disable the window PanelContent.Enabled = false; /* Set up our background worker */ BackgroundWorker bw = new BackgroundWorker(); bw.DoWork += run; /* Now, show our status */ status = new StatusMessage("Compression - Decompress", files); status.Show(); bw.RunWorkerAsync(); }
/* Start Work */ private void startWork(object sender, EventArgs e) { // Disable the window PanelContent.Enabled = false; /* Set up our background worker */ BackgroundWorker bw = new BackgroundWorker(); bw.DoWork += run; /* Now, show our status */ status = new StatusMessage("Archive - Extract", files); status.addProgressBarLocal(); status.Show(); bw.RunWorkerAsync(); }