Esempio n. 1
0
 public void SetVisible(bool state)
 {
     isVisible = state;
     if (targetResolution.Width != width || targetResolution.Height != height)
     {
         targetResolution = new TargetResolution(width, height);
     }
     if (textDisplay.BufferWidth != columns || textDisplay.BufferWidth != lines)
     {
         textDisplay = new TextDisplay(columns, lines);
     }
     textDisplay.IsVisible           = isVisible;
     textDisplay.IsTextVisible       = isTextVisible;
     textDisplay.IsBackgroundVisible = isBackgroundVisible;
     textDisplay.IsCursorVisible     = isCursorVisible;
 }
Esempio n. 2
0
 void Start()
 {
     targetResolution = new TargetResolution(width, height);
     textDisplay      = new TextDisplay(columns, lines);
     textDisplay.WriteLine("Display " + name);
 }