Beispiel #1
0
 string getStatus(ComparisonStatus s)
 {
     switch (s) {
         case ComparisonStatus.DeletedExternally: return "Deleted externally";
         case ComparisonStatus.DeletedLocally: return "Deleted locally";
         case ComparisonStatus.DeletedLocallyAndExternally: return "<font color=\"gray\">Deleted in both</font>";
         case ComparisonStatus.Identical: return "<font color=\"gray\">Identical</font>";
         case ComparisonStatus.ChangedOrNewExternally: return "Changed externally";
         case ComparisonStatus.ChangedOrNewLocally: return "Changed locally";
         case ComparisonStatus.ConflictChangedInBothExternalLatest: return "<font color=\"red\">Changed in both, external last</font>";
         case ComparisonStatus.ConflictChangedInBothLocalLatest: return "<font color=\"red\">Changed in both, local last</font>";
         case ComparisonStatus.ConflictChangedExternallyDeletedLocally: return "<font color=\"red\">Changed externally, deleted locally</font>";
         case ComparisonStatus.ConflictChangedLocallyDeletedExternally: return "<font color=\"red\">Changed locally, deleted externally</font>";
         default: return Utils.GetFriendlyName(s.ToString());
     }
 }