Example #1
0
 public static string ToDisplay(string Selection)
 {
     try
     {
         return(DisplayToValue.Find(item => item.Item2.ToLower() == Selection.ToLower()).Item1);
     }
     catch
     { return("Other"); }
 }
Example #2
0
 public static int ToValue(string Selection)
 {
     try
     {
         return(DisplayToValue.Find(item => item.Item1.ToLower() == Selection.ToLower()).Item2);
     }
     catch
     { return(Internal); }
 }
Example #3
0
 public static string ToDisplay(int Selection)
 {
     try
     {
         return(DisplayToValue.Find(item => item.Item2 == Selection).Item1);
     }
     catch
     { return("Other"); }
 }