Example #1
0
        private void thread_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            pd.Finish();

            this.DialogResult      = createResult;
            MainWindow.projectPath = dstPath;

            this.Close();
        }
 private void zip_SaveProgress(object sender, SaveProgressEventArgs e)
 {
     if (e.EventType == ZipProgressEventType.Saving_Started)
     {
         currentEntry = 0;
     }
     else if (e.EventType == ZipProgressEventType.Saving_AfterWriteEntry)
     {
         pd.UpdateProgress((double)(++currentEntry) / (double)(totalEntry));
         pd.UpdateStatus("Saving " + e.CurrentEntry.FileName);
     }
     else if (e.EventType == ZipProgressEventType.Saving_Completed)
     {
         pd.Finish();
         System.Windows.MessageBox.Show(projectName + " is successfully exported!!");
     }
 }