Exemplo n.º 1
0
 void SetEqualsMark(Label label, string sourceValue, string candidateValue)
 {
     if (MappingWorker.IsEitherNull(sourceValue, candidateValue))
     {
         label.Text      = "-";
         label.ForeColor = SystemColors.ControlText;
     }
     else
     {
         if (MappingWorker.StringEquality(sourceValue, candidateValue))
         {
             label.Text      = "✓";
             label.ForeColor = Color.Green;
         }
         else
         {
             label.Text      = "✗";
             label.ForeColor = Color.Red;
         }
     }
 }