private void Archiving(object sender, EventArgs e) { ArchivingFile file = new ArchivingFile(); string Path = view.getTextBox1 + "\\" + view.GetSetlistView.SelectedItems[0].Text; file.Pack(Path); MessageBox.Show("Архивация прошла успешно."); }
private static ArchivingFile CreateArchivingFile(string fileName) { var annotationSuffix = AnnotationFileHelper.kAnnotationsEafFileSuffix; var metaFileSuffix = Settings.Default.MetadataFileExtension; var arcFile = new ArchivingFile(fileName); // is this an annotation file? if (fileName.EndsWith(annotationSuffix)) { arcFile.DescribesAnotherFile = fileName.Substring(0, fileName.Length - annotationSuffix.Length); } // is this a meta file? if (fileName.EndsWith(metaFileSuffix)) { arcFile.DescribesAnotherFile = fileName.Substring(0, fileName.Length - metaFileSuffix.Length); } return(arcFile); }
/// <summary>Constructor</summary> public IMDIFile(ArchivingFile file) : base(file) { }