Vereinsmeisterschaften  22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
Loading...
Searching...
No Matches
CompetitionDistanceRuleValidationIssueToStringConverter.cs
1using System.Globalization;
2using System.Windows.Data;
5
7
11[ValueConversion(typeof(CompetitionDistanceRuleValidationIssue), typeof(string))]
13{
22 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
23 {
24 if(value != null && value is CompetitionDistanceRuleValidationIssue issue)
25 {
26 string formatedString = "";
27 switch (issue.IssueType)
28 {
31 issue.MinAge,
32 issue.MaxAge);
33 break;
36 issue.MinAge,
37 issue.MaxAge);
38 break;
41 issue.Rule1!.MinAge,
42 issue.Rule1.MaxAge);
43 break;
44 default:
45 formatedString = issue.IssueType.ToString();
46 break;
47 }
48 return formatedString;
49 }
50 return "???";
51 }
52
62 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
63 {
64 throw new NotImplementedException();
65 }
66}
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
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.