/// <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;
		}
예제 #2
0
 /// <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;
 }
		/// <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())
		{
		}
예제 #4
0
 /// <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())
 {
 }