private int FillTexts(string[] lines, int i) { while (lines[i] != "+") { if (lines[i] == "Division") { Division = new TextInImg(lines, ++i); } if (lines[i] == "Date") { Date = new TextInImg(lines, ++i); } if (lines[i] == "ScorePeriods") { ScorePeriods = new TextInImg(lines, ++i); } if (lines[i] == "Score") { Score = new TextInImg(lines, ++i); } if (lines[i] == "HomeTeam") { HomeTeam = new TextInImg(lines, ++i); } if (lines[i] == "AwayTeam") { AwayTeam = new TextInImg(lines, ++i); } if (lines[i] == "HomeLower") { HomeLower = new TextInImg(lines, ++i); } if (lines[i] == "AwayLower") { AwayLower = new TextInImg(lines, ++i); } if (lines[i] == "Mshl") { Mshl = new TextInImg(lines, ++i); } ++i; } return(i); }
public ImgInImg(string s) { var tmp = new TextInImg(); Position = tmp.GetRectFromLine(s); }