コード例 #1
0
ファイル: MoviePage.cs プロジェクト: AZiegler71/DVD-Sammlung
 public MoviePage(string movieName, string originalMovieName, string relativeLink, int year, DegreeOfMatch match)
 {
     MovieName = movieName;
     OriginalMovieName = originalMovieName;
     RelativeLink = relativeLink;
     Year = year;
     Match = match;
 }
コード例 #2
0
 public static string GetWebPageHeader(DegreeOfMatch degree)
 {
     switch (degree)
     {
         case DegreeOfMatch.Exact:
             return "Exakte Ergebnisse";
         case DegreeOfMatch.NearlyExact:
             return "Sehr ähnliche Ergebnisse";
         case DegreeOfMatch.Possible:
             return "Ungefähre Ergebnisse";
         default:
             throw new NotImplementedException ();
     }
 }
コード例 #3
0
 public static string GetText(DegreeOfMatch degree)
 {
     switch (degree)
     {
         case DegreeOfMatch.Exact:
             return "Exakt";
         case DegreeOfMatch.NearlyExact:
             return "Sehr ähnlich";
         case DegreeOfMatch.Possible:
             return "Ungefähr";
         default:
             throw new NotImplementedException ();
     }
 }
コード例 #4
0
 public MatchDegrees(int index, DegreeOfMatch degree)
 {
     Index = index;
     Degree = degree;
 }