From e5fc0ab542f44bff86af60863bfd9e7a95140189 Mon Sep 17 00:00:00 2001 From: Ricardo Polo Date: Mon, 16 Feb 2015 12:18:05 -0500 Subject: [PATCH] Typo --- ...esultOfComparision.cs => ResultOfComparison.cs} | 2 +- Tulpep.Integritul/Tulpep.Integritul.csproj | 6 +++--- Tulpep.Integritul/ViewModels/HomeViewModel.cs | 14 +++++++------- ...ViewModel.cs => ResultOfComparisonViewModel.cs} | 6 +++--- ...risionView.xaml => ResultOfComparisonView.xaml} | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) rename Tulpep.Integritul/Models/{ResultOfComparision.cs => ResultOfComparison.cs} (87%) rename Tulpep.Integritul/ViewModels/{ResultOfComparisionViewModel.cs => ResultOfComparisonViewModel.cs} (66%) rename Tulpep.Integritul/Views/{ResultOfComparisionView.xaml => ResultOfComparisonView.xaml} (82%) diff --git a/Tulpep.Integritul/Models/ResultOfComparision.cs b/Tulpep.Integritul/Models/ResultOfComparison.cs similarity index 87% rename from Tulpep.Integritul/Models/ResultOfComparision.cs rename to Tulpep.Integritul/Models/ResultOfComparison.cs index 078a05e..a76d983 100644 --- a/Tulpep.Integritul/Models/ResultOfComparision.cs +++ b/Tulpep.Integritul/Models/ResultOfComparison.cs @@ -6,7 +6,7 @@ namespace Tulpep.Integritul.Models { - public class ResultOfComparision + public class ResultOfComparison { public string FilePath { get; set; } public string Status { get; set; } diff --git a/Tulpep.Integritul/Tulpep.Integritul.csproj b/Tulpep.Integritul/Tulpep.Integritul.csproj index 66f59c3..7bbc558 100644 --- a/Tulpep.Integritul/Tulpep.Integritul.csproj +++ b/Tulpep.Integritul/Tulpep.Integritul.csproj @@ -95,9 +95,9 @@ - + - + App.xaml @@ -107,7 +107,7 @@ MSBuild:Compile Designer - + MSBuild:Compile Designer diff --git a/Tulpep.Integritul/ViewModels/HomeViewModel.cs b/Tulpep.Integritul/ViewModels/HomeViewModel.cs index e26505e..67f0592 100644 --- a/Tulpep.Integritul/ViewModels/HomeViewModel.cs +++ b/Tulpep.Integritul/ViewModels/HomeViewModel.cs @@ -96,7 +96,7 @@ public async Task CompareIntegrity() progressDialog.SetMessage(value); }); var progress = progressHandler as IProgress; - IEnumerable differences = new List(); + IEnumerable differences = new List(); await Task.Run(() => { differences = CompareFolder(folderToScan, integrityFile, progress); @@ -105,7 +105,7 @@ await Task.Run(() => if(differences.Any()) { IShell shell = IoC.Get(); - shell.ChangeScreen(new ResultOfComparisionViewModel(differences)); + shell.ChangeScreen(new ResultOfComparisonViewModel(differences)); } else { @@ -125,10 +125,10 @@ private static void InitialStatusOfFolder(string folder, string zipFile, IProgre File.WriteAllText(zipFile, JsonConvert.SerializeObject(result, Formatting.Indented)); } - private static IEnumerable CompareFolder(string folder, string zipFile, IProgress progress) + private static IEnumerable CompareFolder(string folder, string zipFile, IProgress progress) { Dictionary original = JsonConvert.DeserializeObject>(File.ReadAllText(zipFile)); - List differences = new List(); + List differences = new List(); foreach (var fileName in Directory.EnumerateFiles(folder, "*.*", SearchOption.AllDirectories)) { progress.Report(fileName); @@ -137,19 +137,19 @@ private static IEnumerable CompareFolder(string folder, str { if(original[relativePath] != GetChecksum(fileName)) { - differences.Add(new ResultOfComparision { FilePath = fileName, Status = "Modified"}); + differences.Add(new ResultOfComparison { FilePath = fileName, Status = "Modified"}); } original.Remove(relativePath); } else { - differences.Add(new ResultOfComparision { FilePath = fileName, Status = "New File"}); + differences.Add(new ResultOfComparison { FilePath = fileName, Status = "New File"}); } } foreach(var entry in original) { - differences.Add(new ResultOfComparision { FilePath = entry.Key, Status = "Deleted" }); + differences.Add(new ResultOfComparison { FilePath = entry.Key, Status = "Deleted" }); } return differences; diff --git a/Tulpep.Integritul/ViewModels/ResultOfComparisionViewModel.cs b/Tulpep.Integritul/ViewModels/ResultOfComparisonViewModel.cs similarity index 66% rename from Tulpep.Integritul/ViewModels/ResultOfComparisionViewModel.cs rename to Tulpep.Integritul/ViewModels/ResultOfComparisonViewModel.cs index c663678..c390357 100644 --- a/Tulpep.Integritul/ViewModels/ResultOfComparisionViewModel.cs +++ b/Tulpep.Integritul/ViewModels/ResultOfComparisonViewModel.cs @@ -8,11 +8,11 @@ namespace Tulpep.Integritul.ViewModels { - public class ResultOfComparisionViewModel : Screen + public class ResultOfComparisonViewModel : Screen { - public IEnumerable ResultList { get; set; } + public IEnumerable ResultList { get; set; } - public ResultOfComparisionViewModel(IEnumerable result) + public ResultOfComparisonViewModel(IEnumerable result) { ResultList = result; } diff --git a/Tulpep.Integritul/Views/ResultOfComparisionView.xaml b/Tulpep.Integritul/Views/ResultOfComparisonView.xaml similarity index 82% rename from Tulpep.Integritul/Views/ResultOfComparisionView.xaml rename to Tulpep.Integritul/Views/ResultOfComparisonView.xaml index c1d4819..849d1f7 100644 --- a/Tulpep.Integritul/Views/ResultOfComparisionView.xaml +++ b/Tulpep.Integritul/Views/ResultOfComparisonView.xaml @@ -7,10 +7,10 @@ mc:Ignorable="d" d:DesignHeight="600" d:DesignWidth="800"> - + Here are the results of your comparison per every file in the folder -