public void DrowBorders() { DrowingField.Line(DrowingField.StaticWidth, 0, DrowingField.StaticWidth, DrowingField.StaticHeight); DrowingField.Line(0, DrowingField.StaticHeight, DrowingField.StaticWidth, DrowingField.StaticHeight); DrowingField.Line(0, 0, DrowingField.StaticWidth, 0); DrowingField.Line(0, 0, 0, DrowingField.StaticHeight); }
public void DrowNextFigure(Figure figure, int level)//рисует следующую фигуру справа и упровни { int x = figure.PositionOnFildX, y = figure.PositionOnFildY; figure.PositionOnFildX = (staticCountRectX + distanceXForOutData); figure.PositionOnFildY = (distanceYForOutData); figure.Draw(); figure.PositionOnFildX = x; figure.PositionOnFildY = y; DrowingField.OutText(staticCountRectX + distanceXForOutData + 1, distanceYForOutData + 12, "Линии: " + countOfLines.ToString(), DrowingField.StaticSizeOfFigure); DrowingField.OutText(staticCountRectX + distanceXForOutData + 1, distanceYForOutData + 14, "Уровень: " + level.ToString(), DrowingField.StaticSizeOfFigure); }
public void WipeOff() { DrowingField.VipeOffRectangle(positionOnFildX, positionOnFildY); }
public void Draw() { DrowingField.FillRectangle(positionOnFildX, positionOnFildY, brush); }
public void SetArea(Graphics gr, Color beckgroungKolor, int width1, int height1, int offsetX, int offsetY)//определяет параметры для вывода { DrowingField.SetArea(gr, beckgroungKolor, width1, height1, offsetX, offsetY); }
public void ShowGameIsOver() { DrowingField.OutText(3, staticCountRectY / 2 + 4, "Game is over! ", DrowingField.StaticSizeOfFigure, 20); }
public void Cliear() { DrowingField.Clear(); }