public UnmappedFile([NotNull] WixFileNode node, [NotNull] IList <UnmappedFile> allUnmappedFiles) { Contract.Requires(node != null); Contract.Requires(allUnmappedFiles != null); _node = node; _allUnmappedFiles = allUnmappedFiles; }
private void MappedNode_Changed(WixFileNode oldValue, WixFileNode newValue) { if (oldValue != null) { _allUnmappedFiles.Add(new UnmappedFile(oldValue, _allUnmappedFiles)); _wixProject.UnmapFile(TargetName); _allUnmappedProjectOutputs.Add(_projectOutput); } if (newValue != null) { var unmappedFile = _allUnmappedFiles.FirstOrDefault(file => Equals(file.Node, newValue)); _allUnmappedFiles.Remove(unmappedFile); _wixProject.MapFile(TargetName, newValue); _allUnmappedProjectOutputs.Remove(_projectOutput); } UpdateMappingState(); }
public UnmappedFile([NotNull] WixFileNode node, [NotNull] IList <UnmappedFile> allUnmappedFiles) { Node = node; _allUnmappedFiles = allUnmappedFiles; }
public UnmappedFile(WixFileNode node, IList <UnmappedFile> allUnmappedFiles) { Node = node; _allUnmappedFiles = allUnmappedFiles; }