Beispiel #1
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.SuspendLayout();
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor           = System.Drawing.SystemColors.ActiveCaptionText;
            this.ClientSize          = new System.Drawing.Size(304, 368);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "Form1";
            this.Text = "PacMan";
            this.ResumeLayout(false);

            //    Task.Factory.StartNew(() => this.Controls.Add(world.view));


            WorldController world = new WorldController(); //in here are all the other controls added

            this.Controls.Add(world.view);
        }
Beispiel #2
0
 public WorldUI(WorldController controller)
 {
     worldController = controller;
     InitializeComponent();
 }