public LexemLine MakeLexemLine(int indexStart, int indexEnd) { List <LexemView> lexemViews = this.MakeLexemViewList(indexStart, indexEnd); LexemLine line = new LexemLine(lexemViews); return(line); }
public Field MakeField(int indexStart, int indexEnd) { List <LexemLine> lexeLines = new List <LexemLine>(); LineFactory lineFactory = new LineFactory(); for (int i = 0; i < FieldSettings.RowNumbers; i++) { LexemLine lexemeLine = lineFactory.MakeLexemLine(indexStart, indexEnd); lexemeLine.Y = i * FieldSettings.PictureHeight; if (i == FieldSettings.RowNumbers - 1) { foreach (LexemView lexim in lexemeLine.LexemViews) { lexim.IsAccessible = true; } } lexeLines.Add(lexemeLine); } Field field = new Field(lexeLines); return(field); }