public ConfirmArchiveActionArgs(string tag, ArchiveFormatInfo format, IVirtualItem archiveFile)
 {
     this.ActionTag = tag;
     this.ArchiveFormat = format;
     this.DestArchiveFile = archiveFile;
 }
 public ArchiveFormatConfig(ArchiveFormatInfo formatInfo)
 {
     this.Format = formatInfo;
     this.Read();
 }
 public bool Execute(IWin32Window owner, IEnumerable<IVirtualItem> items, IChangeVirtualFile destFile, ArchiveFormatInfo format)
 {
     if (items == null)
     {
         throw new ArgumentNullException("items");
     }
     if (destFile == null)
     {
         throw new ArgumentNullException("destFile");
     }
     IVirtualItem item = this.InitializeFormats(items);
     this.cmbPackTo.Text = destFile.FullName;
     if ((format != null) && ((format.Capabilities & ArchiveFormatCapabilities.UpdateArchive) > 0))
     {
         this.cmbFormat.SelectedItem = format;
     }
     if ((this.cmbFormat.SelectedIndex < 0) && (this.cmbFormat.Items.Count > 0))
     {
         this.cmbFormat.SelectedIndex = 0;
     }
     HistorySettings.PopulateComboBox(this.cmbPackTo, HistorySettings.Default.PackTo);
     if (base.ShowDialog(owner) == DialogResult.OK)
     {
         HistorySettings.Default.AddStringToPackTo(this.PackTo);
         if (this.cmbFilter.Enabled)
         {
             HistorySettings.Default.AddStringToCopyFilter(this.cmbFilter.FilterString);
         }
         return true;
     }
     return false;
 }
 private void Write37_ArchiveFormatInfo(string n, string ns, ArchiveFormatInfo o, bool isNullable, bool needType)
 {
     if (o == null)
     {
         if (isNullable)
         {
             base.WriteNullTagLiteral(n, ns);
         }
     }
     else if (!needType)
     {
         System.Type type = o.GetType();
         if (type != typeof(ArchiveFormatInfo))
         {
             if (type != typeof(PersistArchiveFormatInfo))
             {
                 throw base.CreateUnknownTypeException(o);
             }
             this.Write38_PersistArchiveFormatInfo(n, ns, (PersistArchiveFormatInfo) o, isNullable, true);
         }
     }
 }
 public FindFormatResult(ArchiveFormatInfo format, int offset)
 {
     this.Format = format;
     this.Offset = offset;
     this.FindSource = FindFormatSource.Content;
 }
 public FindFormatResult(ArchiveFormatInfo format, FindFormatSource source)
 {
     this.Format = format;
     this.Offset = -1;
     this.FindSource = source;
 }