コード例 #1
0
ファイル: Create.cs プロジェクト: memerdot/puyotools
        /* 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();
        }
コード例 #2
0
ファイル: Decompress.cs プロジェクト: memerdot/puyotools
        /* 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();
        }
コード例 #3
0
ファイル: Extract.cs プロジェクト: memerdot/puyotools
        /* 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();
        }