Ejemplo n.º 1
0
        public static Console Create(ConsoleCreationParameters ccp)
        {
            bool fullScreen = ccp.FullScreen;
            var  c          = new Console(fullScreen, ccp.CharacterWidth, ccp.CharacterHeight, ccp.Width, ccp.Height, ccp.ClientSize);

            if (ccp.CreateDefaultViewAndBuffer)
            {
                c.Viewports.Add(new Viewport(new Buffer(ccp.Width, ccp.Height)));
            }
            return(c);
        }
Ejemplo n.º 2
0
 public static Console Create(ConsoleCreationParameters ccp)
 {
     bool fullScreen = ccp.FullScreen;
       var c = new Console(fullScreen, ccp.CharacterWidth, ccp.CharacterHeight, ccp.Width, ccp.Height, ccp.ClientSize);
       if (ccp.CreateDefaultViewAndBuffer)
     c.Viewports.Add(new Viewport(new Buffer(ccp.Width, ccp.Height)));
       return c;
 }