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