示例#1
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            base.Initialize();

            Vector2 position = new Vector2(50f, 50f);
            Window window = new Window(this, position, 200, 200);
            windowManager.AddWindow(window);
            Window window2 = new Window(this, new Vector2(300,100), 300, 300);
            windowManager.AddWindow(window2);

            mousePoint = new Point(0, 0);
        }
示例#2
0
 public void AddWindow(Window window)
 {
     _Windows.Add(window);
     window.Initialize();
 }