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;
 }
示例#2
0
 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>();
         }
     }
 }
示例#3
0
        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);
                    }
                }
            }
        }
示例#4
0
 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)
 {
 }
示例#8
0
 public ConsoleGameField(int width, int height, IDrawingByCoordinates <SignConsole> location, Dictionary <GamesSquareValues, SignConsole> squareValue)
     : base(width, height, location)
 {
     SquareValue = squareValue;
 }
示例#9
0
 public SnakeField(int width, int height, IDrawingByCoordinates <GamesSquareValues> location) : base(width, height, location)
 {
     Value = new GamesSquareValues[Width, Height];
 }
示例#10
0
 public DrawnRectangle(int width, int height, IDrawingByCoordinates <T> location) : base(width, height)
 {
     Location = location ?? throw new ArgumentNullException();
 }