public void TestInitialize()
 {
     var screen = new GridScreen(new Rectangle(1920, 1200, 1024, 768), new HandyMap());
     Assert.AreEqual(1920, screen.Left);
     Assert.AreEqual(1200, screen.Top);
     Assert.AreEqual(new Rectangle(0, 0, 1024, 768), screen.InnerRect);
     Assert.AreEqual(new Rectangle(0, 0, 1024, 768), screen.Root.Bounds);
 }
 public void TestCreateChildren()
 {
     var bounds = new Rectangle(1920, 0, 1024, 768);
     var screen = new GridScreen(bounds, new HandyMap());
     using (var form = new Form())
     {
         form.Size = new Size(1024, 768);
         screen.CreateChildren(form.CreateGraphics());
         var dic = screen.Root.DicChildren;
         Assert.AreEqual(dic.Count, 9);
         Assert.AreEqual(new Rectangle(0, 0, 341, 256), dic["w"].Bounds);
         Assert.AreEqual(new Rectangle(682, 256, 341, 256), dic["f"].Bounds);
         Assert.AreEqual(new Rectangle(0, 512, 341, 256), dic["x"].Bounds);
     }
 }
 //protected override CreateParams CreateParams
 //{
 //    get
 //    {
 //        CreateParams cp = base.CreateParams;
 //        cp.ExStyle |= 0x00000020;
 //        return cp;
 //    }
 //}
 private void MainScreen_Load(object sender, EventArgs e)
 {
     SetScreenBounds();
     CurrentScreen = new GridScreen(CurrentRect, new FullMap());
 }