public ExportToProjectVM(IPickDirectory pickDirectory, ILanguageManager languageManager, IExportTask exportTask, bool canDecompileBaml) { this.pickDirectory = pickDirectory; this.languageManager = languageManager; this.exportTask = exportTask; this.canDecompileBaml = canDecompileBaml; this.unpackResources = true; this.createResX = true; this.decompileXaml = canDecompileBaml; this.createSolution = true; this.projectVersionVM.SelectedItem = ProjectVersion.VS2010; this.language = languageManager.AllLanguages.FirstOrDefault(a => a.ProjectFileExtension != null); this.isIndeterminate = false; }
public ExportToProjectVM(IPickDirectory pickDirectory, ILanguageManager languageManager, IExportTask exportTask, bool canDecompileBaml) { this.pickDirectory = pickDirectory; this.languageManager = languageManager; this.exportTask = exportTask; this.canDecompileBaml = canDecompileBaml; this.unpackResources = true; this.createResX = true; this.decompileXaml = canDecompileBaml; this.createSolution = true; this.projectVersionVM.SelectedItem = ProjectVersion.VS2010; this.language = languageManager.Languages.FirstOrDefault(a => a.ProjectFileExtension != null); this.isIndeterminate = false; }
public ExportToProjectVM(IPickDirectory pickDirectory, IDecompilerService decompilerService, IExportTask exportTask, bool canDecompileBaml) { this.pickDirectory = pickDirectory; this.decompilerService = decompilerService; this.exportTask = exportTask; this.canDecompileBaml = canDecompileBaml; this.unpackResources = true; this.createResX = true; this.decompileXaml = canDecompileBaml; this.createSolution = true; this.ProjectVersionVM.SelectedItem = ProjectVersion.VS2010; this.decompiler = decompilerService.AllDecompilers.FirstOrDefault(a => a.ProjectFileExtension != null); this.isIndeterminate = false; this.ProjectGuid = new NullableGuidVM(Guid.NewGuid(), a => HasErrorUpdated()); }
public ExportToProjectVM(IPickDirectory pickDirectory, IDecompilerService decompilerService, IExportTask exportTask, bool canDecompileBaml) { this.pickDirectory = pickDirectory; this.exportTask = exportTask; this.canDecompileBaml = canDecompileBaml; unpackResources = true; createResX = true; decompileXaml = canDecompileBaml; createSolution = true; ProjectVersionVM.SelectedItem = ProjectVersion.VS2010; allDecompilers = new ObservableCollection <DecompilerVM>(decompilerService.AllDecompilers.Where(a => a.ProjectFileExtension != null).Select(a => new DecompilerVM(a))); decompiler = allDecompilers.FirstOrDefault(); isIndeterminate = false; ProjectGuid = new NullableGuidVM(Guid.NewGuid(), a => HasErrorUpdated()); }
public ExportToProjectVM(IPickDirectory pickDirectory, IDecompilerService decompilerService, IExportTask exportTask, bool canDecompileBaml) { this.pickDirectory = pickDirectory; this.decompilerService = decompilerService; this.exportTask = exportTask; this.canDecompileBaml = canDecompileBaml; unpackResources = true; createResX = true; decompileXaml = canDecompileBaml; createSolution = true; ProjectVersionVM.SelectedItem = ProjectVersion.VS2010; decompiler = decompilerService.AllDecompilers.FirstOrDefault(a => a.ProjectFileExtension != null); isIndeterminate = false; ProjectGuid = new NullableGuidVM(Guid.NewGuid(), a => HasErrorUpdated()); }
/// <summary> /// Constructs a new <see cref="FileStreamExporter"/> instance. /// </summary> /// <param name="documentFactory">The export document factory.</param> /// <param name="task">The export task.</param> public FileStreamExporter(IDocumentFactory documentFactory, IExportTask task) { _documentFactory = documentFactory ?? throw new ArgumentNullException(nameof(documentFactory)); _task = task ?? throw new ArgumentNullException(nameof(task)); }
internal FileStreamExporter(IDocumentFactory documentFactory, IExportTask exportTask, Func <DateTime> nowFactory) { _documentFactory = documentFactory ?? throw new ArgumentNullException(nameof(documentFactory)); _exportTask = exportTask ?? throw new ArgumentNullException(nameof(exportTask)); _nowFactory = nowFactory ?? throw new ArgumentNullException(nameof(nowFactory)); }
/// <summary> /// Constructs a new <see cref="FileStreamExporter"/> instance. /// </summary> /// <param name="documentFactory">The export document factory.</param> /// <param name="exportTask">The export task.</param> public FileStreamExporter(IDocumentFactory documentFactory, IExportTask exportTask) : this(documentFactory, exportTask, () => DateTime.Now) { }