1using System.Globalization;
2using System.Windows.Data;
11[ValueConversion(typeof(CompetitionDistanceRuleValidationIssue), typeof(
string))]
22 public object Convert(
object value, Type targetType,
object parameter, CultureInfo culture)
26 string formatedString =
"";
27 switch (issue.IssueType)
45 formatedString = issue.IssueType.ToString();
48 return formatedString;
62 public object ConvertBack(
object value, Type targetType,
object parameter, CultureInfo culture)
64 throw new NotImplementedException();
Converts the contents of a CompetitionDistanceRuleValidationIssue to a describing string.
object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Conversion method.
object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Back conversion method.
Class describing one issue during the validation of the CompetitionDistanceRule
CompetitionDistanceRuleValidationIssueType
Enum with available issue types.
Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
static string CompetitionDistanceRuleValidationIssueFormat_AgeGap
Sucht eine lokalisierte Zeichenfolge, die Age Gap between {0} and {1} years ähnelt.
static string CompetitionDistanceRuleValidationIssueFormat_UnreachableRule
Sucht eine lokalisierte Zeichenfolge, die Unreachable rule: {0} to {1} years ähnelt.
static string CompetitionDistanceRuleValidationIssueFormat_Overlap
Sucht eine lokalisierte Zeichenfolge, die Overlap in range {0} to {1} years ähnelt.