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); }
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(); } }