/// <summary> /// Loads the Wix document containing the directory information and displays it. /// </summary> public void ShowFiles(WixProject project, ITextFileReader fileReader, IWixDocumentWriter documentWriter) { this.project = project; editor = new WixPackageFilesEditor(this, fileReader, documentWriter); editor.ExcludedItems.AddRange(GetExcludedItems()); editor.ShowFiles(project); }
/// <summary> /// Creates a new instance of the WixPackageFilesEditor. /// </summary> /// <param name="view">The UI for the package files editor.</param> /// <param name="fileReader">The file reader hides the file system and the /// workbench from the editor so the class can be easily tested.</param> /// <param name="documentWriter">The file writer hides the file system and the /// workbench from the editor.</param> /// <param name="directoryReader">The directory reader hides the file system /// from the editor.</param> public WixPackageFilesEditor(IWixPackageFilesView view, ITextFileReader fileReader, IWixDocumentWriter documentWriter, IDirectoryReader directoryReader) { document = null; this.view = view; this.fileReader = fileReader; this.documentWriter = documentWriter; this.directoryReader = directoryReader; }
public void ShowFiles(WixProject project, ITextFileReader fileReader, IWixDocumentWriter documentWriter) { showFilesProjectParameter = project; showFilesFileReaderParameter = fileReader; showFilesDocumentWriterParameter = documentWriter; }
/// <summary> /// Creates a new instance of the WixPackageFilesEditor which uses /// the default directory reader which just uses the Directory class. /// </summary> public WixPackageFilesEditor(IWixPackageFilesView view, ITextFileReader fileReader, IWixDocumentWriter documentWriter) : this(view, fileReader, documentWriter, new DirectoryReader()) { }