示例#1
0
 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
     });
 }
示例#2
0
        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();
        }
示例#3
0
 public void CompareFiles(ComparisonPair compareFiles)
 {
     ShowDiffWindowFiles(compareFiles);
 }