public static ConsoleWithSquare CreateConsoleWithSquare() { if (Value == null) { Value = new ConsoleWithSquare(); } return(Value); }
private ConsoleWithSquare() : base(Console.WindowWidth / 2, Console.WindowHeight) { Value = this; ObjectInRectangle = new Dictionary <object, Coordinates>(); }