public BigPixelPrint(int width, int height, IDrawingByCoordinates <SignConsole> location, Letters library) : base(width, height, location) { if (Height < 5 || Width < 5) { throw new Exception("неверные размеры формы"); } Library = library; Length = Width / 6; }
public ManagerConsoleSquare(int width, int height, IDrawingByCoordinates <SignConsole> location) : base(width, height, location) { ObjectInRectangles = new Dictionary <object, Coordinates>(); ObjectValueOfCordinates = new Stack <object> [Width, Height]; for (int i = 0; i < Width; i++) { for (int j = 0; j < Height; j++) { ObjectValueOfCordinates[i, j] = new Stack <object>(); } } }
public Frame(int width, int height, T value, IDrawingByCoordinates <T> location) { Width = width; Height = height; Value = value; Location = location; Coord = new Coordinates[Width * 2 + Height * 2 - 4]; var t = 0; for (int i = 0; i < Width; i++) { for (int j = 0; j < Height; j++) { if (i == 0 || i == Width - 1 || j == 0 || j == Height - 1) { Coord[t++] = (i, j); } } } }
public ConsolePrintMenu(int width, int height, IDrawingByCoordinates <SignConsole> location, KeyboardMenu <ButtonInConsole> menu) : base(width, height, location) { Menu = menu; menu.ChangeButton += ChangeButton; }
public ButtonInConsoleSetter(int width, int height, IDrawingByCoordinates <SignConsole> location, SignConsole[] name) : base(width, height, location, name) { Name = name; }
public ButtonInConsole(int width, int height, IDrawingByCoordinates <SignConsole> location, SignConsole[] value) : base(width, height, location) { Name = value; }
public ConsoleWriter(int width, int height, IDrawingByCoordinates <SignConsole> location) : base(width, height, location) { }
public ConsoleGameField(int width, int height, IDrawingByCoordinates <SignConsole> location, Dictionary <GamesSquareValues, SignConsole> squareValue) : base(width, height, location) { SquareValue = squareValue; }
public SnakeField(int width, int height, IDrawingByCoordinates <GamesSquareValues> location) : base(width, height, location) { Value = new GamesSquareValues[Width, Height]; }
public DrawnRectangle(int width, int height, IDrawingByCoordinates <T> location) : base(width, height) { Location = location ?? throw new ArgumentNullException(); }