Exemple #1
0
        private void ExtractFiles(object sender, FilesEventArgs e)
        {
            if (SaveDialog.ShowDialog() == DialogResult.OK)
            {
                ExHelper.DecryptModels = settings.DecryptModels;
                ExHelper.ExtractPath   = SaveDialog.SelectedPath;

                using (Status status = new Status(new Predicate <NexonArchiveFileEntry>(ExHelper.Extract), e.File))
                {
                    status.Text            = "Extracting files...";
                    status.DestinationPath = ExHelper.ExtractPath;

                    DialogResult dr = status.ShowDialog(this);

                    if (dr == DialogResult.Abort)
                    {
                        MessageBox.Show("An Error Occured While Extracting The Files...", "Error");
                    }
                    else if (dr == DialogResult.OK)
                    {
                        MessageBox.Show("All The Selected Files Have Been Extracted Successfully.", "Complete");
                    }
                }
            }
        }
        protected void OnVerifyFolder(FilesEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e");
            }

            VerifyFolder?.Invoke(this, e);
        }
Exemple #3
0
 private void VerifyFiles(object sender, FilesEventArgs e)
 {
     using (Status status = new Status(new Predicate <NexonArchiveFileEntry>(VerifyHelper), e.File))
     {
         status.Text = "Verifying files...";
         DialogResult dr = status.ShowDialog(this);
         if (dr == DialogResult.Abort)
         {
             MessageBox.Show("An Error Occured While Verifying The Files...", "Error");
         }
         else if (dr == DialogResult.OK)
         {
             MessageBox.Show("All The Selected Files Have Been Verified Successfully.", "Complete");
         }
     }
 }
Exemple #4
0
 private void FolderTree_ShowFolder(object sender, FilesEventArgs e)
 {
     CurrentPath.Text  = e.Path;
     FileList.FullPath = e.Path;
     FileList.BeginUpdate();
     FileList.Items.Clear();
     if (e.File != null)
     {
         foreach (NexonArchiveFileEntry entry in e.File)
         {
             FileList.AddFile(entry);
         }
     }
     FileList.EndUpdate();
     FileList_SelectedIndexChanged(this, EventArgs.Empty);
 }