Click here to Skip to main content
15,896,268 members
Articles / Programming Languages / C#

AI: Dawkins Biomorphs / And Other Evolving Creatures

Rate me:
Please Sign up or sign in to vote.
4.80/5 (35 votes)
29 Jan 2007CPOL4 min read 168.1K   967   56  
An implementation of Dawkins Biomorphs and some more crazy evolving creatures.
using System.Windows.Forms;

namespace EvolvingCritters
{
    partial class Form1
    {
        #region Autogenerated code
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
        #endregion
        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.pnlTop = new System.Windows.Forms.Panel();
            this.pictureBox1 = new System.Windows.Forms.PictureBox();
            this.pnlMain = new System.Windows.Forms.Panel();
            this.pnlCritters = new System.Windows.Forms.Panel();
            this.tblCritters = new EvolvingCritters.BiomorphLayoutPanel();
            this.cpnlLeft = new UserControls.CollapsePanelBar();
            this.pictureBox2 = new System.Windows.Forms.PictureBox();
            this.cpMorphs = new UserControls.CollapsePanel();
            this.lnkCowSkulls = new System.Windows.Forms.LinkLabel();
            this.lnkDawkins = new System.Windows.Forms.LinkLabel();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.pnlTop.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
            this.pnlMain.SuspendLayout();
            this.pnlCritters.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.cpnlLeft)).BeginInit();
            this.cpnlLeft.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
            this.cpMorphs.SuspendLayout();
            this.SuspendLayout();
            // 
            // pnlTop
            // 
            this.pnlTop.BackColor = System.Drawing.Color.White;
            this.pnlTop.Controls.Add(this.pictureBox1);
            this.pnlTop.Dock = System.Windows.Forms.DockStyle.Top;
            this.pnlTop.Location = new System.Drawing.Point(0, 0);
            this.pnlTop.Name = "pnlTop";
            this.pnlTop.Size = new System.Drawing.Size(746, 100);
            this.pnlTop.TabIndex = 8;
            // 
            // pictureBox1
            // 
            this.pictureBox1.Image = global::EvolvingCritters.Resource1.crittersLogo;
            this.pictureBox1.Location = new System.Drawing.Point(1, 0);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Size = new System.Drawing.Size(645, 97);
            this.pictureBox1.TabIndex = 0;
            this.pictureBox1.TabStop = false;
            // 
            // pnlMain
            // 
            this.pnlMain.Controls.Add(this.pnlCritters);
            this.pnlMain.Controls.Add(this.cpnlLeft);
            this.pnlMain.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pnlMain.Location = new System.Drawing.Point(0, 100);
            this.pnlMain.Name = "pnlMain";
            this.pnlMain.Size = new System.Drawing.Size(746, 450);
            this.pnlMain.TabIndex = 9;
            // 
            // pnlCritters
            // 
            this.pnlCritters.Controls.Add(this.tblCritters);
            this.pnlCritters.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pnlCritters.Location = new System.Drawing.Point(245, 0);
            this.pnlCritters.Name = "pnlCritters";
            this.pnlCritters.Size = new System.Drawing.Size(501, 450);
            this.pnlCritters.TabIndex = 10;
            // 
            // tblCritters
            // 
            this.tblCritters.BackColor = System.Drawing.Color.Black;
            this.tblCritters.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
            this.tblCritters.ColumnCount = 3;
            this.tblCritters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
            this.tblCritters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
            this.tblCritters.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
            this.tblCritters.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tblCritters.ForeColor = System.Drawing.Color.Red;
            this.tblCritters.Location = new System.Drawing.Point(0, 0);
            this.tblCritters.Margin = new System.Windows.Forms.Padding(0);
            this.tblCritters.Name = "tblCritters";
            this.tblCritters.RowCount = 3;
            this.tblCritters.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
            this.tblCritters.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
            this.tblCritters.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
            this.tblCritters.Size = new System.Drawing.Size(501, 450);
            this.tblCritters.TabIndex = 10;
            // 
            // cpnlLeft
            // 
            this.cpnlLeft.BackColor = System.Drawing.Color.White;
            this.cpnlLeft.Border = 10;
            this.cpnlLeft.Controls.Add(this.pictureBox2);
            this.cpnlLeft.Controls.Add(this.cpMorphs);
            this.cpnlLeft.Dock = System.Windows.Forms.DockStyle.Left;
            this.cpnlLeft.Location = new System.Drawing.Point(0, 0);
            this.cpnlLeft.Name = "cpnlLeft";
            this.cpnlLeft.Size = new System.Drawing.Size(245, 450);
            this.cpnlLeft.Spacing = 8;
            this.cpnlLeft.TabIndex = 8;
            // 
            // pictureBox2
            // 
            this.pictureBox2.Image = global::EvolvingCritters.Resource1.skullAbout;
            this.pictureBox2.Location = new System.Drawing.Point(-44, 177);
            this.pictureBox2.Name = "pictureBox2";
            this.pictureBox2.Size = new System.Drawing.Size(257, 275);
            this.pictureBox2.TabIndex = 1;
            this.pictureBox2.TabStop = false;
            // 
            // cpMorphs
            // 
            this.cpMorphs.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.cpMorphs.BackColor = System.Drawing.Color.WhiteSmoke;
            this.cpMorphs.CollapsePanelCurrentState = UserControls.CollapsePanelCurrentState.Expanded;
            this.cpMorphs.Controls.Add(this.lnkCowSkulls);
            this.cpMorphs.Controls.Add(this.lnkDawkins);
            this.cpMorphs.Location = new System.Drawing.Point(8, 10);
            this.cpMorphs.Name = "cpMorphs";
            this.cpMorphs.PanelBorderColor = System.Drawing.Color.Gray;
            this.cpMorphs.Size = new System.Drawing.Size(229, 114);
            this.cpMorphs.TabIndex = 0;
            this.cpMorphs.TitleBarEndColor = System.Drawing.Color.Black;
            this.cpMorphs.TitleBarStartColor = System.Drawing.Color.Black;
            this.cpMorphs.TitleBarTextColor = System.Drawing.Color.White;
            this.cpMorphs.TitleFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cpMorphs.TitleText = "Select BioMorph Type";
            // 
            // lnkCowSkulls
            // 
            this.lnkCowSkulls.AutoSize = true;
            this.lnkCowSkulls.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.lnkCowSkulls.LinkColor = System.Drawing.Color.DodgerBlue;
            this.lnkCowSkulls.Location = new System.Drawing.Point(24, 75);
            this.lnkCowSkulls.MaximumSize = new System.Drawing.Size(150, 18);
            this.lnkCowSkulls.MinimumSize = new System.Drawing.Size(150, 18);
            this.lnkCowSkulls.Name = "lnkCowSkulls";
            this.lnkCowSkulls.Size = new System.Drawing.Size(150, 18);
            this.lnkCowSkulls.TabIndex = 3;
            this.lnkCowSkulls.TabStop = true;
            this.lnkCowSkulls.Text = "Cow skull bio-morphs";
            this.lnkCowSkulls.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.lnkCowSkulls.VisitedLinkColor = System.Drawing.Color.DodgerBlue;
            this.lnkCowSkulls.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkCowSkulls_LinkClicked);
            // 
            // lnkDawkins
            // 
            this.lnkDawkins.AutoSize = true;
            this.lnkDawkins.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.lnkDawkins.LinkColor = System.Drawing.Color.DodgerBlue;
            this.lnkDawkins.Location = new System.Drawing.Point(24, 40);
            this.lnkDawkins.MaximumSize = new System.Drawing.Size(150, 18);
            this.lnkDawkins.MinimumSize = new System.Drawing.Size(150, 18);
            this.lnkDawkins.Name = "lnkDawkins";
            this.lnkDawkins.Size = new System.Drawing.Size(150, 18);
            this.lnkDawkins.TabIndex = 0;
            this.lnkDawkins.TabStop = true;
            this.lnkDawkins.Text = "Classic dawkins bio-morphs";
            this.lnkDawkins.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            this.lnkDawkins.VisitedLinkColor = System.Drawing.Color.DodgerBlue;
            this.lnkDawkins.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkDawkins_LinkClicked);
            // 
            // timer1
            // 
            this.timer1.Enabled = true;
            this.timer1.Interval = 1500;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            // 
            // 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(746, 550);
            this.Controls.Add(this.pnlMain);
            this.Controls.Add(this.pnlTop);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Form1";
            this.ShowIcon = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Bio-morphs";
            this.pnlTop.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
            this.pnlMain.ResumeLayout(false);
            this.pnlCritters.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.cpnlLeft)).EndInit();
            this.cpnlLeft.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
            this.cpMorphs.ResumeLayout(false);
            this.cpMorphs.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion
        #region Instance Fields
        //instance fields
        private System.Windows.Forms.Panel pnlTop;
        private System.Windows.Forms.Panel pnlMain;
        private UserControls.CollapsePanelBar cpnlLeft;
        private UserControls.CollapsePanel cpMorphs;
        private System.Windows.Forms.LinkLabel lnkDawkins;
        private System.Windows.Forms.Timer timer1;
        private System.Windows.Forms.PictureBox pictureBox1;
        private System.Windows.Forms.PictureBox pictureBox2;
        private Panel pnlCritters;
        private LinkLabel lnkCowSkulls;
        private TableLayoutPanel tblCritters;
        #endregion
        

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
I currently hold the following qualifications (amongst others, I also studied Music Technology and Electronics, for my sins)

- MSc (Passed with distinctions), in Information Technology for E-Commerce
- BSc Hons (1st class) in Computer Science & Artificial Intelligence

Both of these at Sussex University UK.

Award(s)

I am lucky enough to have won a few awards for Zany Crazy code articles over the years

  • Microsoft C# MVP 2016
  • Codeproject MVP 2016
  • Microsoft C# MVP 2015
  • Codeproject MVP 2015
  • Microsoft C# MVP 2014
  • Codeproject MVP 2014
  • Microsoft C# MVP 2013
  • Codeproject MVP 2013
  • Microsoft C# MVP 2012
  • Codeproject MVP 2012
  • Microsoft C# MVP 2011
  • Codeproject MVP 2011
  • Microsoft C# MVP 2010
  • Codeproject MVP 2010
  • Microsoft C# MVP 2009
  • Codeproject MVP 2009
  • Microsoft C# MVP 2008
  • Codeproject MVP 2008
  • And numerous codeproject awards which you can see over at my blog

Comments and Discussions