public static NewItemFileViewModel ConflictingStylesFile(FailedMergePostAction file) { return(new NewItemFileViewModel(FileStatus.ConflictingStylesFile, file.FileName, AsUserFriendlyPostAction) { FailedPostaction = Path.Combine(GenContext.Current.OutputPath, $"{file.FileName.Replace(".xaml", string.Empty)}_failedpostaction.xaml") }); }
public static NewItemFileViewModel WarningFile(FailedMergePostAction file) { return(new NewItemFileViewModel(FileStatus.WarningFile, file.FailedFileName, AsUserFriendlyPostAction) { Description = file.Description }); }
public FailedMergesFileViewModel(FailedMergePostAction warning) : base(warning.FailedFileName) { DetailTitle = StringRes.ChangesSummaryDetailTitleFailedMerges; var sb = new StringBuilder(); sb.AppendLine(StringRes.ChangesSummaryDetailDescriptionFailedMerges); if (!string.IsNullOrEmpty(warning.Description)) { sb.AppendLine(warning.Description); } DetailDescription = sb.ToString(); Subject = warning.FileName; }