private static IndexTupel Create_IndexTupel(WeightedComparisonPairDto v, ComparisonPair pair) { return(new IndexTupel { MoreWeight = v.Selection == Selection.A ? pair.IndexA : pair.IndexB, LessWeight = v.Selection == Selection.A ? pair.IndexB : pair.IndexA }); }
private static void ShowDiffWindowFiles(ComparisonPair compareFiles) { //TODO: Multithread the shit out of this app, so stuff like this doesn't lock the main GUI like a newb Process job = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo(_binary, string.Format("\"{0}\" \"{1}\"", compareFiles.Old, compareFiles.New)); startInfo.UseShellExecute = true; job.StartInfo = startInfo; job.Start(); job.WaitForExit(); job.Close(); }
public void CompareFiles(ComparisonPair compareFiles) { ShowDiffWindowFiles(compareFiles); }