Exemplo n.º 1
0
 protected override void BeforeRun()
 {
     VGADriverII.Initialize(VGAMode.Pixel320x200DB);
     draw.FromByteArray(System.Graphics.Images.BootScreen);
     VGAGraphics.DrawImage(0, 0, draw);
     VGAGraphics.Display();
     draw.FromByteArray(System.Graphics.Images.Cursor);
 }
Exemplo n.º 2
0
 public static void Run()
 {
     VGADriverII.Clear(247);
     VGAGraphics.DrawString(0, 0, "Cosix Graphics Manager", VGAColor.Black, VGAFont.Font8x8);
     VGAGraphics.DrawFilledRect(300, 180, 20, 20, VGAColor.Red);
     VGAGraphics.DrawFilledRect((int)MouseManager.X, (int)MouseManager.Y, 2, 2, VGAColor.Blue);
     if (vstate == 2)
     {
         VGAGraphics.Display();
     }
     if ((MouseManager.X > 300) & (MouseManager.Y > 180) & (MouseManager.MouseState == MouseState.Left))
     {
         GoText();
         Terminal.TextColor = ConsoleColor.White;
         Terminal.BackColor = ConsoleColor.Black;
         Terminal.Clear();
     }
 }