static void Main(string[] args) { Data.FirstFile = Search.Files(0); Data.SecondFile = Search.Files(1); CompareFiles.Compare(); OutputResult.Output(); }
public static void Compare() { for (int i = 0; i < Data.FirstFile.Count; i++) { if (Data.FirstFile[i] != Data.SecondFile[i]) { CompareFiles.Transfer(i, CompareFiles.Change(i)); } } }
private static void Transfer(int i, int NumberOfCorrect) { if (NumberOfCorrect > 0) { CompareFiles.StringIsChanged(i, NumberOfCorrect); } if (NumberOfCorrect == 0) { CompareFiles.AdditionOrDeletion(i); } }