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")
     });
 }
Example #2
0
 public static NewItemFileViewModel WarningFile(FailedMergePostAction file)
 {
     return(new NewItemFileViewModel(FileStatus.WarningFile, file.FailedFileName, AsUserFriendlyPostAction)
     {
         Description = file.Description
     });
 }
Example #3
0
        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;
        }