//////////////////////////////////////////////////////////////////////////// ///This section of code is windows generated. It is the code that draws //// ///the interface. it creates everything as objects i can use //// //////////////////////////////////////////////////////////////////////////// using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; namespace Bic_Ass2 { /// /// Summary description for Form1. /// public class Form1 : System.Windows.Forms.Form { private System.Windows.Forms.Button RandomiseBugs; private System.Windows.Forms.Button HelpMe; private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.PictureBox pictureBox2; private System.Windows.Forms.PictureBox pictureBox3; private System.Windows.Forms.PictureBox pictureBox4; private System.Windows.Forms.PictureBox pictureBox5; private System.Windows.Forms.PictureBox pictureBox6; private System.Windows.Forms.PictureBox pictureBox7; private System.Windows.Forms.PictureBox pictureBox8; private System.Windows.Forms.PictureBox pictureBox9; private System.Windows.Forms.PictureBox pictureBox10; private System.Windows.Forms.PictureBox pictureBox11; private System.Windows.Forms.PictureBox pictureBox12; private System.Windows.Forms.PictureBox pictureBox13; private System.Windows.Forms.PictureBox pictureBox14; private System.Windows.Forms.PictureBox pictureBox15; private System.Windows.Forms.PictureBox pictureBox16; private System.Windows.Forms.PictureBox pictureBox17; private System.Windows.Forms.PictureBox pictureBox18; private System.Windows.Forms.PictureBox pictureBox19; private System.Windows.Forms.PictureBox pictureBox20; private System.Windows.Forms.PictureBox pictureBox21; private System.Windows.Forms.PictureBox pictureBox22; private System.Windows.Forms.PictureBox pictureBox23; private System.Windows.Forms.PictureBox pictureBox24; private System.Windows.Forms.PictureBox pictureBox25; private System.Windows.Forms.PictureBox pictureBox26; private System.Windows.Forms.PictureBox pictureBox27; private System.Windows.Forms.PictureBox pictureBox28; private System.Windows.Forms.PictureBox pictureBox29; private System.Windows.Forms.PictureBox pictureBox30; private System.Windows.Forms.PictureBox pictureBox31; private System.Windows.Forms.PictureBox pictureBox32; private System.Windows.Forms.PictureBox pictureBox33; private System.Windows.Forms.PictureBox pictureBox34; private System.Windows.Forms.PictureBox pictureBox35; private System.Windows.Forms.PictureBox pictureBox36; private System.Windows.Forms.PictureBox pictureBox37; private System.Windows.Forms.PictureBox pictureBox38; private System.Windows.Forms.PictureBox pictureBox39; private System.Windows.Forms.PictureBox pictureBox40; private System.Windows.Forms.PictureBox pictureBox41; private System.Windows.Forms.PictureBox pictureBox42; private System.Windows.Forms.PictureBox pictureBox43; private System.Windows.Forms.PictureBox pictureBox44; private System.Windows.Forms.PictureBox pictureBox45; private System.Windows.Forms.PictureBox pictureBox46; private System.Windows.Forms.PictureBox pictureBox47; private System.Windows.Forms.PictureBox pictureBox48; private System.Windows.Forms.PictureBox pictureBox49; private System.Windows.Forms.PictureBox pictureBox50; private System.Windows.Forms.PictureBox pictureBox51; private System.Windows.Forms.PictureBox pictureBox52; private System.Windows.Forms.PictureBox pictureBox53; private System.Windows.Forms.PictureBox pictureBox54; private System.Windows.Forms.PictureBox pictureBox55; private System.Windows.Forms.PictureBox pictureBox56; private System.Windows.Forms.PictureBox pictureBox57; private System.Windows.Forms.PictureBox pictureBox58; private System.Windows.Forms.PictureBox pictureBox59; private System.Windows.Forms.PictureBox pictureBox60; private System.Windows.Forms.PictureBox pictureBox61; private System.Windows.Forms.PictureBox pictureBox62; private System.Windows.Forms.PictureBox pictureBox63; private System.Windows.Forms.PictureBox pictureBox64; private System.Windows.Forms.PictureBox pictureBox65; private System.Windows.Forms.PictureBox pictureBox66; private System.Windows.Forms.PictureBox pictureBox67; private System.Windows.Forms.PictureBox pictureBox68; private System.Windows.Forms.PictureBox pictureBox69; private System.Windows.Forms.PictureBox pictureBox70; private System.Windows.Forms.PictureBox pictureBox71; private System.Windows.Forms.PictureBox pictureBox72; private System.Windows.Forms.PictureBox pictureBox73; private System.Windows.Forms.PictureBox pictureBox74; private System.Windows.Forms.PictureBox pictureBox75; private System.Windows.Forms.PictureBox pictureBox76; private System.Windows.Forms.PictureBox pictureBox77; private System.Windows.Forms.PictureBox pictureBox78; private System.Windows.Forms.PictureBox pictureBox79; private System.Windows.Forms.PictureBox pictureBox80; private System.Windows.Forms.PictureBox pictureBox81; private System.Windows.Forms.PictureBox pictureBox82; private System.Windows.Forms.PictureBox pictureBox83; private System.Windows.Forms.PictureBox pictureBox84; private System.Windows.Forms.PictureBox pictureBox85; private System.Windows.Forms.PictureBox pictureBox86; private System.Windows.Forms.PictureBox pictureBox87; private System.Windows.Forms.PictureBox pictureBox88; private System.Windows.Forms.PictureBox pictureBox89; private System.Windows.Forms.PictureBox pictureBox90; private System.Windows.Forms.PictureBox pictureBox91; private System.Windows.Forms.PictureBox pictureBox92; private System.Windows.Forms.PictureBox pictureBox93; private System.Windows.Forms.PictureBox pictureBox94; private System.Windows.Forms.PictureBox pictureBox95; private System.Windows.Forms.PictureBox pictureBox96; private System.Windows.Forms.PictureBox pictureBox97; private System.Windows.Forms.PictureBox pictureBox98; private System.Windows.Forms.PictureBox pictureBox99; private System.Windows.Forms.PictureBox pictureBox100; private System.Windows.Forms.PictureBox pictureBox101; private System.Windows.Forms.PictureBox pictureBox102; private System.Windows.Forms.Button checkFitness; private System.Windows.Forms.Button newGeneration; private System.Windows.Forms.Label label1; private System.Windows.Forms.Button sortArray; private System.Windows.Forms.RichTextBox richTextBox1; private System.Windows.Forms.CheckBox checkBox1; private System.Windows.Forms.Button MutateButton; private System.Windows.Forms.Button chooseParentsButton; private System.Windows.Forms.CheckBox checkBox2; private System.Windows.Forms.Button loops10; private System.Windows.Forms.Button loops5; private System.Windows.Forms.Button loops20; private System.Windows.Forms.Button auto; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.Timer timer1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label4; private System.Windows.Forms.TextBox textBox3; private System.Windows.Forms.Label label5; private System.Windows.Forms.TextBox textBox4; private System.Windows.Forms.Button button1; private System.Windows.Forms.Button clearBox; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button6; private System.Windows.Forms.Label label3; private System.ComponentModel.IContainer components; public Form1() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); this.RandomiseBugs = new System.Windows.Forms.Button(); this.HelpMe = new System.Windows.Forms.Button(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.pictureBox3 = new System.Windows.Forms.PictureBox(); this.pictureBox4 = new System.Windows.Forms.PictureBox(); this.pictureBox5 = new System.Windows.Forms.PictureBox(); this.pictureBox6 = new System.Windows.Forms.PictureBox(); this.pictureBox7 = new System.Windows.Forms.PictureBox(); this.pictureBox8 = new System.Windows.Forms.PictureBox(); this.pictureBox9 = new System.Windows.Forms.PictureBox(); this.pictureBox10 = new System.Windows.Forms.PictureBox(); this.pictureBox11 = new System.Windows.Forms.PictureBox(); this.pictureBox12 = new System.Windows.Forms.PictureBox(); this.pictureBox13 = new System.Windows.Forms.PictureBox(); this.pictureBox14 = new System.Windows.Forms.PictureBox(); this.pictureBox15 = new System.Windows.Forms.PictureBox(); this.pictureBox16 = new System.Windows.Forms.PictureBox(); this.pictureBox17 = new System.Windows.Forms.PictureBox(); this.pictureBox18 = new System.Windows.Forms.PictureBox(); this.pictureBox19 = new System.Windows.Forms.PictureBox(); this.pictureBox20 = new System.Windows.Forms.PictureBox(); this.pictureBox21 = new System.Windows.Forms.PictureBox(); this.pictureBox22 = new System.Windows.Forms.PictureBox(); this.pictureBox23 = new System.Windows.Forms.PictureBox(); this.pictureBox24 = new System.Windows.Forms.PictureBox(); this.pictureBox25 = new System.Windows.Forms.PictureBox(); this.pictureBox26 = new System.Windows.Forms.PictureBox(); this.pictureBox27 = new System.Windows.Forms.PictureBox(); this.pictureBox28 = new System.Windows.Forms.PictureBox(); this.pictureBox29 = new System.Windows.Forms.PictureBox(); this.pictureBox30 = new System.Windows.Forms.PictureBox(); this.pictureBox31 = new System.Windows.Forms.PictureBox(); this.pictureBox32 = new System.Windows.Forms.PictureBox(); this.pictureBox33 = new System.Windows.Forms.PictureBox(); this.pictureBox34 = new System.Windows.Forms.PictureBox(); this.pictureBox35 = new System.Windows.Forms.PictureBox(); this.pictureBox36 = new System.Windows.Forms.PictureBox(); this.pictureBox37 = new System.Windows.Forms.PictureBox(); this.pictureBox38 = new System.Windows.Forms.PictureBox(); this.pictureBox39 = new System.Windows.Forms.PictureBox(); this.pictureBox40 = new System.Windows.Forms.PictureBox(); this.pictureBox41 = new System.Windows.Forms.PictureBox(); this.pictureBox42 = new System.Windows.Forms.PictureBox(); this.pictureBox43 = new System.Windows.Forms.PictureBox(); this.pictureBox44 = new System.Windows.Forms.PictureBox(); this.pictureBox45 = new System.Windows.Forms.PictureBox(); this.pictureBox46 = new System.Windows.Forms.PictureBox(); this.pictureBox47 = new System.Windows.Forms.PictureBox(); this.pictureBox48 = new System.Windows.Forms.PictureBox(); this.pictureBox49 = new System.Windows.Forms.PictureBox(); this.pictureBox50 = new System.Windows.Forms.PictureBox(); this.pictureBox51 = new System.Windows.Forms.PictureBox(); this.pictureBox52 = new System.Windows.Forms.PictureBox(); this.pictureBox53 = new System.Windows.Forms.PictureBox(); this.pictureBox54 = new System.Windows.Forms.PictureBox(); this.pictureBox55 = new System.Windows.Forms.PictureBox(); this.pictureBox56 = new System.Windows.Forms.PictureBox(); this.pictureBox57 = new System.Windows.Forms.PictureBox(); this.pictureBox58 = new System.Windows.Forms.PictureBox(); this.pictureBox59 = new System.Windows.Forms.PictureBox(); this.pictureBox60 = new System.Windows.Forms.PictureBox(); this.pictureBox61 = new System.Windows.Forms.PictureBox(); this.pictureBox62 = new System.Windows.Forms.PictureBox(); this.pictureBox63 = new System.Windows.Forms.PictureBox(); this.pictureBox64 = new System.Windows.Forms.PictureBox(); this.pictureBox65 = new System.Windows.Forms.PictureBox(); this.pictureBox66 = new System.Windows.Forms.PictureBox(); this.pictureBox67 = new System.Windows.Forms.PictureBox(); this.pictureBox68 = new System.Windows.Forms.PictureBox(); this.pictureBox69 = new System.Windows.Forms.PictureBox(); this.pictureBox70 = new System.Windows.Forms.PictureBox(); this.pictureBox71 = new System.Windows.Forms.PictureBox(); this.pictureBox72 = new System.Windows.Forms.PictureBox(); this.pictureBox73 = new System.Windows.Forms.PictureBox(); this.pictureBox74 = new System.Windows.Forms.PictureBox(); this.pictureBox75 = new System.Windows.Forms.PictureBox(); this.pictureBox76 = new System.Windows.Forms.PictureBox(); this.pictureBox77 = new System.Windows.Forms.PictureBox(); this.pictureBox78 = new System.Windows.Forms.PictureBox(); this.pictureBox79 = new System.Windows.Forms.PictureBox(); this.pictureBox80 = new System.Windows.Forms.PictureBox(); this.pictureBox81 = new System.Windows.Forms.PictureBox(); this.pictureBox82 = new System.Windows.Forms.PictureBox(); this.pictureBox83 = new System.Windows.Forms.PictureBox(); this.pictureBox84 = new System.Windows.Forms.PictureBox(); this.pictureBox85 = new System.Windows.Forms.PictureBox(); this.pictureBox86 = new System.Windows.Forms.PictureBox(); this.pictureBox87 = new System.Windows.Forms.PictureBox(); this.pictureBox88 = new System.Windows.Forms.PictureBox(); this.pictureBox89 = new System.Windows.Forms.PictureBox(); this.pictureBox90 = new System.Windows.Forms.PictureBox(); this.pictureBox91 = new System.Windows.Forms.PictureBox(); this.pictureBox92 = new System.Windows.Forms.PictureBox(); this.pictureBox93 = new System.Windows.Forms.PictureBox(); this.pictureBox94 = new System.Windows.Forms.PictureBox(); this.pictureBox95 = new System.Windows.Forms.PictureBox(); this.pictureBox96 = new System.Windows.Forms.PictureBox(); this.pictureBox97 = new System.Windows.Forms.PictureBox(); this.pictureBox98 = new System.Windows.Forms.PictureBox(); this.pictureBox99 = new System.Windows.Forms.PictureBox(); this.pictureBox100 = new System.Windows.Forms.PictureBox(); this.chooseParentsButton = new System.Windows.Forms.Button(); this.pictureBox101 = new System.Windows.Forms.PictureBox(); this.pictureBox102 = new System.Windows.Forms.PictureBox(); this.checkFitness = new System.Windows.Forms.Button(); this.newGeneration = new System.Windows.Forms.Button(); this.loops10 = new System.Windows.Forms.Button(); this.sortArray = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.richTextBox1 = new System.Windows.Forms.RichTextBox(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.MutateButton = new System.Windows.Forms.Button(); this.checkBox2 = new System.Windows.Forms.CheckBox(); this.loops5 = new System.Windows.Forms.Button(); this.loops20 = new System.Windows.Forms.Button(); this.auto = new System.Windows.Forms.Button(); this.textBox1 = new System.Windows.Forms.TextBox(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.label2 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.textBox3 = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.textBox4 = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.clearBox = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button6 = new System.Windows.Forms.Button(); this.label3 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // RandomiseBugs // this.RandomiseBugs.BackColor = System.Drawing.Color.Yellow; this.RandomiseBugs.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.RandomiseBugs.Location = new System.Drawing.Point(664, 56); this.RandomiseBugs.Name = "RandomiseBugs"; this.RandomiseBugs.Size = new System.Drawing.Size(112, 40); this.RandomiseBugs.TabIndex = 0; this.RandomiseBugs.Text = "Shuffle"; this.RandomiseBugs.Click += new System.EventHandler(this.RandomiseBugs_Click); // // HelpMe // this.HelpMe.BackColor = System.Drawing.Color.Turquoise; this.HelpMe.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.HelpMe.Location = new System.Drawing.Point(664, 8); this.HelpMe.Name = "HelpMe"; this.HelpMe.Size = new System.Drawing.Size(112, 40); this.HelpMe.TabIndex = 1; this.HelpMe.Text = "Help"; this.HelpMe.Click += new System.EventHandler(this.HelpMe_Click); // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(8, 312); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(32, 32); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox1.TabIndex = 2; this.pictureBox1.TabStop = false; // // pictureBox2 // this.pictureBox2.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox2.Image"))); this.pictureBox2.Location = new System.Drawing.Point(232, 120); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(32, 32); this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox2.TabIndex = 3; this.pictureBox2.TabStop = false; // // pictureBox3 // this.pictureBox3.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox3.Image"))); this.pictureBox3.Location = new System.Drawing.Point(200, 240); this.pictureBox3.Name = "pictureBox3"; this.pictureBox3.Size = new System.Drawing.Size(32, 32); this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox3.TabIndex = 4; this.pictureBox3.TabStop = false; // // pictureBox4 // this.pictureBox4.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox4.Image"))); this.pictureBox4.Location = new System.Drawing.Point(256, 120); this.pictureBox4.Name = "pictureBox4"; this.pictureBox4.Size = new System.Drawing.Size(32, 32); this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox4.TabIndex = 5; this.pictureBox4.TabStop = false; // // pictureBox5 // this.pictureBox5.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox5.Image"))); this.pictureBox5.Location = new System.Drawing.Point(176, 264); this.pictureBox5.Name = "pictureBox5"; this.pictureBox5.Size = new System.Drawing.Size(32, 32); this.pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox5.TabIndex = 6; this.pictureBox5.TabStop = false; // // pictureBox6 // this.pictureBox6.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox6.Image"))); this.pictureBox6.Location = new System.Drawing.Point(200, 312); this.pictureBox6.Name = "pictureBox6"; this.pictureBox6.Size = new System.Drawing.Size(32, 32); this.pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox6.TabIndex = 7; this.pictureBox6.TabStop = false; // // pictureBox7 // this.pictureBox7.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox7.Image"))); this.pictureBox7.Location = new System.Drawing.Point(200, 264); this.pictureBox7.Name = "pictureBox7"; this.pictureBox7.Size = new System.Drawing.Size(32, 32); this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox7.TabIndex = 8; this.pictureBox7.TabStop = false; // // pictureBox8 // this.pictureBox8.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox8.Image"))); this.pictureBox8.Location = new System.Drawing.Point(256, 144); this.pictureBox8.Name = "pictureBox8"; this.pictureBox8.Size = new System.Drawing.Size(32, 32); this.pictureBox8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox8.TabIndex = 9; this.pictureBox8.TabStop = false; // // pictureBox9 // this.pictureBox9.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox9.Image"))); this.pictureBox9.Location = new System.Drawing.Point(232, 144); this.pictureBox9.Name = "pictureBox9"; this.pictureBox9.Size = new System.Drawing.Size(32, 32); this.pictureBox9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox9.TabIndex = 10; this.pictureBox9.TabStop = false; // // pictureBox10 // this.pictureBox10.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox10.Image"))); this.pictureBox10.Location = new System.Drawing.Point(176, 312); this.pictureBox10.Name = "pictureBox10"; this.pictureBox10.Size = new System.Drawing.Size(32, 32); this.pictureBox10.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox10.TabIndex = 11; this.pictureBox10.TabStop = false; // // pictureBox11 // this.pictureBox11.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox11.Image"))); this.pictureBox11.Location = new System.Drawing.Point(176, 288); this.pictureBox11.Name = "pictureBox11"; this.pictureBox11.Size = new System.Drawing.Size(32, 32); this.pictureBox11.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox11.TabIndex = 12; this.pictureBox11.TabStop = false; // // pictureBox12 // this.pictureBox12.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox12.Image"))); this.pictureBox12.Location = new System.Drawing.Point(200, 288); this.pictureBox12.Name = "pictureBox12"; this.pictureBox12.Size = new System.Drawing.Size(32, 32); this.pictureBox12.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox12.TabIndex = 13; this.pictureBox12.TabStop = false; // // pictureBox13 // this.pictureBox13.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox13.Image"))); this.pictureBox13.Location = new System.Drawing.Point(256, 168); this.pictureBox13.Name = "pictureBox13"; this.pictureBox13.Size = new System.Drawing.Size(32, 32); this.pictureBox13.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox13.TabIndex = 14; this.pictureBox13.TabStop = false; // // pictureBox14 // this.pictureBox14.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox14.Image"))); this.pictureBox14.Location = new System.Drawing.Point(232, 168); this.pictureBox14.Name = "pictureBox14"; this.pictureBox14.Size = new System.Drawing.Size(32, 32); this.pictureBox14.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox14.TabIndex = 15; this.pictureBox14.TabStop = false; // // pictureBox15 // this.pictureBox15.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox15.Image"))); this.pictureBox15.Location = new System.Drawing.Point(232, 192); this.pictureBox15.Name = "pictureBox15"; this.pictureBox15.Size = new System.Drawing.Size(32, 32); this.pictureBox15.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox15.TabIndex = 16; this.pictureBox15.TabStop = false; // // pictureBox16 // this.pictureBox16.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox16.Image"))); this.pictureBox16.Location = new System.Drawing.Point(256, 192); this.pictureBox16.Name = "pictureBox16"; this.pictureBox16.Size = new System.Drawing.Size(32, 32); this.pictureBox16.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox16.TabIndex = 17; this.pictureBox16.TabStop = false; // // pictureBox17 // this.pictureBox17.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox17.Image"))); this.pictureBox17.Location = new System.Drawing.Point(232, 216); this.pictureBox17.Name = "pictureBox17"; this.pictureBox17.Size = new System.Drawing.Size(32, 32); this.pictureBox17.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox17.TabIndex = 18; this.pictureBox17.TabStop = false; // // pictureBox18 // this.pictureBox18.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox18.Image"))); this.pictureBox18.Location = new System.Drawing.Point(256, 216); this.pictureBox18.Name = "pictureBox18"; this.pictureBox18.Size = new System.Drawing.Size(32, 32); this.pictureBox18.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox18.TabIndex = 19; this.pictureBox18.TabStop = false; // // pictureBox19 // this.pictureBox19.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox19.Image"))); this.pictureBox19.Location = new System.Drawing.Point(256, 240); this.pictureBox19.Name = "pictureBox19"; this.pictureBox19.Size = new System.Drawing.Size(32, 32); this.pictureBox19.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox19.TabIndex = 20; this.pictureBox19.TabStop = false; // // pictureBox20 // this.pictureBox20.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox20.Image"))); this.pictureBox20.Location = new System.Drawing.Point(232, 240); this.pictureBox20.Name = "pictureBox20"; this.pictureBox20.Size = new System.Drawing.Size(32, 32); this.pictureBox20.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox20.TabIndex = 21; this.pictureBox20.TabStop = false; // // pictureBox21 // this.pictureBox21.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox21.Image"))); this.pictureBox21.Location = new System.Drawing.Point(232, 288); this.pictureBox21.Name = "pictureBox21"; this.pictureBox21.Size = new System.Drawing.Size(32, 32); this.pictureBox21.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox21.TabIndex = 22; this.pictureBox21.TabStop = false; // // pictureBox22 // this.pictureBox22.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox22.Image"))); this.pictureBox22.Location = new System.Drawing.Point(232, 264); this.pictureBox22.Name = "pictureBox22"; this.pictureBox22.Size = new System.Drawing.Size(32, 32); this.pictureBox22.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox22.TabIndex = 23; this.pictureBox22.TabStop = false; // // pictureBox23 // this.pictureBox23.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox23.Image"))); this.pictureBox23.Location = new System.Drawing.Point(256, 264); this.pictureBox23.Name = "pictureBox23"; this.pictureBox23.Size = new System.Drawing.Size(32, 32); this.pictureBox23.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox23.TabIndex = 24; this.pictureBox23.TabStop = false; // // pictureBox24 // this.pictureBox24.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox24.Image"))); this.pictureBox24.Location = new System.Drawing.Point(8, 288); this.pictureBox24.Name = "pictureBox24"; this.pictureBox24.Size = new System.Drawing.Size(32, 32); this.pictureBox24.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox24.TabIndex = 25; this.pictureBox24.TabStop = false; // // pictureBox25 // this.pictureBox25.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox25.Image"))); this.pictureBox25.Location = new System.Drawing.Point(256, 96); this.pictureBox25.Name = "pictureBox25"; this.pictureBox25.Size = new System.Drawing.Size(32, 32); this.pictureBox25.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox25.TabIndex = 26; this.pictureBox25.TabStop = false; // // pictureBox26 // this.pictureBox26.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox26.Image"))); this.pictureBox26.Location = new System.Drawing.Point(88, 312); this.pictureBox26.Name = "pictureBox26"; this.pictureBox26.Size = new System.Drawing.Size(32, 32); this.pictureBox26.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox26.TabIndex = 27; this.pictureBox26.TabStop = false; // // pictureBox27 // this.pictureBox27.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox27.Image"))); this.pictureBox27.Location = new System.Drawing.Point(88, 216); this.pictureBox27.Name = "pictureBox27"; this.pictureBox27.Size = new System.Drawing.Size(32, 32); this.pictureBox27.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox27.TabIndex = 28; this.pictureBox27.TabStop = false; // // pictureBox28 // this.pictureBox28.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox28.Image"))); this.pictureBox28.Location = new System.Drawing.Point(88, 192); this.pictureBox28.Name = "pictureBox28"; this.pictureBox28.Size = new System.Drawing.Size(32, 32); this.pictureBox28.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox28.TabIndex = 29; this.pictureBox28.TabStop = false; // // pictureBox29 // this.pictureBox29.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox29.Image"))); this.pictureBox29.Location = new System.Drawing.Point(64, 240); this.pictureBox29.Name = "pictureBox29"; this.pictureBox29.Size = new System.Drawing.Size(32, 32); this.pictureBox29.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox29.TabIndex = 30; this.pictureBox29.TabStop = false; // // pictureBox30 // this.pictureBox30.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox30.Image"))); this.pictureBox30.Location = new System.Drawing.Point(64, 192); this.pictureBox30.Name = "pictureBox30"; this.pictureBox30.Size = new System.Drawing.Size(32, 32); this.pictureBox30.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox30.TabIndex = 31; this.pictureBox30.TabStop = false; // // pictureBox31 // this.pictureBox31.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox31.Image"))); this.pictureBox31.Location = new System.Drawing.Point(88, 168); this.pictureBox31.Name = "pictureBox31"; this.pictureBox31.Size = new System.Drawing.Size(32, 32); this.pictureBox31.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox31.TabIndex = 32; this.pictureBox31.TabStop = false; // // pictureBox32 // this.pictureBox32.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox32.Image"))); this.pictureBox32.Location = new System.Drawing.Point(64, 168); this.pictureBox32.Name = "pictureBox32"; this.pictureBox32.Size = new System.Drawing.Size(32, 32); this.pictureBox32.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox32.TabIndex = 33; this.pictureBox32.TabStop = false; // // pictureBox33 // this.pictureBox33.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox33.Image"))); this.pictureBox33.Location = new System.Drawing.Point(88, 144); this.pictureBox33.Name = "pictureBox33"; this.pictureBox33.Size = new System.Drawing.Size(32, 32); this.pictureBox33.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox33.TabIndex = 34; this.pictureBox33.TabStop = false; // // pictureBox34 // this.pictureBox34.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox34.Image"))); this.pictureBox34.Location = new System.Drawing.Point(64, 144); this.pictureBox34.Name = "pictureBox34"; this.pictureBox34.Size = new System.Drawing.Size(32, 32); this.pictureBox34.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox34.TabIndex = 35; this.pictureBox34.TabStop = false; // // pictureBox35 // this.pictureBox35.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox35.Image"))); this.pictureBox35.Location = new System.Drawing.Point(8, 120); this.pictureBox35.Name = "pictureBox35"; this.pictureBox35.Size = new System.Drawing.Size(32, 32); this.pictureBox35.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox35.TabIndex = 36; this.pictureBox35.TabStop = false; // // pictureBox36 // this.pictureBox36.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox36.Image"))); this.pictureBox36.Location = new System.Drawing.Point(32, 120); this.pictureBox36.Name = "pictureBox36"; this.pictureBox36.Size = new System.Drawing.Size(32, 32); this.pictureBox36.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox36.TabIndex = 37; this.pictureBox36.TabStop = false; // // pictureBox37 // this.pictureBox37.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox37.Image"))); this.pictureBox37.Location = new System.Drawing.Point(8, 144); this.pictureBox37.Name = "pictureBox37"; this.pictureBox37.Size = new System.Drawing.Size(32, 32); this.pictureBox37.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox37.TabIndex = 38; this.pictureBox37.TabStop = false; // // pictureBox38 // this.pictureBox38.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox38.Image"))); this.pictureBox38.Location = new System.Drawing.Point(8, 168); this.pictureBox38.Name = "pictureBox38"; this.pictureBox38.Size = new System.Drawing.Size(32, 32); this.pictureBox38.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox38.TabIndex = 39; this.pictureBox38.TabStop = false; // // pictureBox39 // this.pictureBox39.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox39.Image"))); this.pictureBox39.Location = new System.Drawing.Point(64, 120); this.pictureBox39.Name = "pictureBox39"; this.pictureBox39.Size = new System.Drawing.Size(32, 32); this.pictureBox39.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox39.TabIndex = 40; this.pictureBox39.TabStop = false; // // pictureBox40 // this.pictureBox40.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox40.Image"))); this.pictureBox40.Location = new System.Drawing.Point(32, 144); this.pictureBox40.Name = "pictureBox40"; this.pictureBox40.Size = new System.Drawing.Size(32, 32); this.pictureBox40.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox40.TabIndex = 41; this.pictureBox40.TabStop = false; // // pictureBox41 // this.pictureBox41.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox41.Image"))); this.pictureBox41.Location = new System.Drawing.Point(8, 192); this.pictureBox41.Name = "pictureBox41"; this.pictureBox41.Size = new System.Drawing.Size(32, 32); this.pictureBox41.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox41.TabIndex = 42; this.pictureBox41.TabStop = false; // // pictureBox42 // this.pictureBox42.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox42.Image"))); this.pictureBox42.Location = new System.Drawing.Point(32, 168); this.pictureBox42.Name = "pictureBox42"; this.pictureBox42.Size = new System.Drawing.Size(32, 32); this.pictureBox42.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox42.TabIndex = 43; this.pictureBox42.TabStop = false; // // pictureBox43 // this.pictureBox43.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox43.Image"))); this.pictureBox43.Location = new System.Drawing.Point(88, 120); this.pictureBox43.Name = "pictureBox43"; this.pictureBox43.Size = new System.Drawing.Size(32, 32); this.pictureBox43.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox43.TabIndex = 44; this.pictureBox43.TabStop = false; // // pictureBox44 // this.pictureBox44.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox44.Image"))); this.pictureBox44.Location = new System.Drawing.Point(32, 192); this.pictureBox44.Name = "pictureBox44"; this.pictureBox44.Size = new System.Drawing.Size(32, 32); this.pictureBox44.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox44.TabIndex = 45; this.pictureBox44.TabStop = false; // // pictureBox45 // this.pictureBox45.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox45.Image"))); this.pictureBox45.Location = new System.Drawing.Point(8, 216); this.pictureBox45.Name = "pictureBox45"; this.pictureBox45.Size = new System.Drawing.Size(32, 32); this.pictureBox45.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox45.TabIndex = 46; this.pictureBox45.TabStop = false; // // pictureBox46 // this.pictureBox46.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox46.Image"))); this.pictureBox46.Location = new System.Drawing.Point(32, 312); this.pictureBox46.Name = "pictureBox46"; this.pictureBox46.Size = new System.Drawing.Size(32, 32); this.pictureBox46.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox46.TabIndex = 47; this.pictureBox46.TabStop = false; // // pictureBox47 // this.pictureBox47.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox47.Image"))); this.pictureBox47.Location = new System.Drawing.Point(8, 240); this.pictureBox47.Name = "pictureBox47"; this.pictureBox47.Size = new System.Drawing.Size(32, 32); this.pictureBox47.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox47.TabIndex = 48; this.pictureBox47.TabStop = false; // // pictureBox48 // this.pictureBox48.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox48.Image"))); this.pictureBox48.Location = new System.Drawing.Point(32, 288); this.pictureBox48.Name = "pictureBox48"; this.pictureBox48.Size = new System.Drawing.Size(32, 32); this.pictureBox48.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox48.TabIndex = 49; this.pictureBox48.TabStop = false; // // pictureBox49 // this.pictureBox49.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox49.Image"))); this.pictureBox49.Location = new System.Drawing.Point(32, 240); this.pictureBox49.Name = "pictureBox49"; this.pictureBox49.Size = new System.Drawing.Size(32, 32); this.pictureBox49.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox49.TabIndex = 50; this.pictureBox49.TabStop = false; // // pictureBox50 // this.pictureBox50.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox50.Image"))); this.pictureBox50.Location = new System.Drawing.Point(32, 264); this.pictureBox50.Name = "pictureBox50"; this.pictureBox50.Size = new System.Drawing.Size(32, 32); this.pictureBox50.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox50.TabIndex = 51; this.pictureBox50.TabStop = false; // // pictureBox51 // this.pictureBox51.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox51.Image"))); this.pictureBox51.Location = new System.Drawing.Point(144, 120); this.pictureBox51.Name = "pictureBox51"; this.pictureBox51.Size = new System.Drawing.Size(32, 32); this.pictureBox51.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox51.TabIndex = 52; this.pictureBox51.TabStop = false; // // pictureBox52 // this.pictureBox52.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox52.Image"))); this.pictureBox52.Location = new System.Drawing.Point(32, 216); this.pictureBox52.Name = "pictureBox52"; this.pictureBox52.Size = new System.Drawing.Size(32, 32); this.pictureBox52.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox52.TabIndex = 53; this.pictureBox52.TabStop = false; // // pictureBox53 // this.pictureBox53.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox53.Image"))); this.pictureBox53.Location = new System.Drawing.Point(120, 144); this.pictureBox53.Name = "pictureBox53"; this.pictureBox53.Size = new System.Drawing.Size(32, 32); this.pictureBox53.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox53.TabIndex = 54; this.pictureBox53.TabStop = false; // // pictureBox54 // this.pictureBox54.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox54.Image"))); this.pictureBox54.Location = new System.Drawing.Point(120, 192); this.pictureBox54.Name = "pictureBox54"; this.pictureBox54.Size = new System.Drawing.Size(32, 32); this.pictureBox54.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox54.TabIndex = 55; this.pictureBox54.TabStop = false; // // pictureBox55 // this.pictureBox55.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox55.Image"))); this.pictureBox55.Location = new System.Drawing.Point(120, 168); this.pictureBox55.Name = "pictureBox55"; this.pictureBox55.Size = new System.Drawing.Size(32, 32); this.pictureBox55.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox55.TabIndex = 56; this.pictureBox55.TabStop = false; // // pictureBox56 // this.pictureBox56.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox56.Image"))); this.pictureBox56.Location = new System.Drawing.Point(144, 144); this.pictureBox56.Name = "pictureBox56"; this.pictureBox56.Size = new System.Drawing.Size(32, 32); this.pictureBox56.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox56.TabIndex = 57; this.pictureBox56.TabStop = false; // // pictureBox57 // this.pictureBox57.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox57.Image"))); this.pictureBox57.Location = new System.Drawing.Point(144, 192); this.pictureBox57.Name = "pictureBox57"; this.pictureBox57.Size = new System.Drawing.Size(32, 32); this.pictureBox57.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox57.TabIndex = 58; this.pictureBox57.TabStop = false; // // pictureBox58 // this.pictureBox58.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox58.Image"))); this.pictureBox58.Location = new System.Drawing.Point(144, 168); this.pictureBox58.Name = "pictureBox58"; this.pictureBox58.Size = new System.Drawing.Size(32, 32); this.pictureBox58.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox58.TabIndex = 59; this.pictureBox58.TabStop = false; // // pictureBox59 // this.pictureBox59.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox59.Image"))); this.pictureBox59.Location = new System.Drawing.Point(144, 240); this.pictureBox59.Name = "pictureBox59"; this.pictureBox59.Size = new System.Drawing.Size(32, 32); this.pictureBox59.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox59.TabIndex = 60; this.pictureBox59.TabStop = false; // // pictureBox60 // this.pictureBox60.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox60.Image"))); this.pictureBox60.Location = new System.Drawing.Point(120, 240); this.pictureBox60.Name = "pictureBox60"; this.pictureBox60.Size = new System.Drawing.Size(32, 32); this.pictureBox60.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox60.TabIndex = 61; this.pictureBox60.TabStop = false; // // pictureBox61 // this.pictureBox61.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox61.Image"))); this.pictureBox61.Location = new System.Drawing.Point(144, 216); this.pictureBox61.Name = "pictureBox61"; this.pictureBox61.Size = new System.Drawing.Size(32, 32); this.pictureBox61.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox61.TabIndex = 62; this.pictureBox61.TabStop = false; // // pictureBox62 // this.pictureBox62.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox62.Image"))); this.pictureBox62.Location = new System.Drawing.Point(120, 216); this.pictureBox62.Name = "pictureBox62"; this.pictureBox62.Size = new System.Drawing.Size(32, 32); this.pictureBox62.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox62.TabIndex = 63; this.pictureBox62.TabStop = false; // // pictureBox63 // this.pictureBox63.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox63.Image"))); this.pictureBox63.Location = new System.Drawing.Point(8, 264); this.pictureBox63.Name = "pictureBox63"; this.pictureBox63.Size = new System.Drawing.Size(32, 32); this.pictureBox63.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox63.TabIndex = 64; this.pictureBox63.TabStop = false; // // pictureBox64 // this.pictureBox64.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox64.Image"))); this.pictureBox64.Location = new System.Drawing.Point(120, 264); this.pictureBox64.Name = "pictureBox64"; this.pictureBox64.Size = new System.Drawing.Size(32, 32); this.pictureBox64.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox64.TabIndex = 65; this.pictureBox64.TabStop = false; // // pictureBox65 // this.pictureBox65.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox65.Image"))); this.pictureBox65.Location = new System.Drawing.Point(144, 288); this.pictureBox65.Name = "pictureBox65"; this.pictureBox65.Size = new System.Drawing.Size(32, 32); this.pictureBox65.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox65.TabIndex = 66; this.pictureBox65.TabStop = false; // // pictureBox66 // this.pictureBox66.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox66.Image"))); this.pictureBox66.Location = new System.Drawing.Point(120, 288); this.pictureBox66.Name = "pictureBox66"; this.pictureBox66.Size = new System.Drawing.Size(32, 32); this.pictureBox66.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox66.TabIndex = 67; this.pictureBox66.TabStop = false; // // pictureBox67 // this.pictureBox67.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox67.Image"))); this.pictureBox67.Location = new System.Drawing.Point(144, 264); this.pictureBox67.Name = "pictureBox67"; this.pictureBox67.Size = new System.Drawing.Size(32, 32); this.pictureBox67.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox67.TabIndex = 68; this.pictureBox67.TabStop = false; // // pictureBox68 // this.pictureBox68.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox68.Image"))); this.pictureBox68.Location = new System.Drawing.Point(232, 96); this.pictureBox68.Name = "pictureBox68"; this.pictureBox68.Size = new System.Drawing.Size(32, 32); this.pictureBox68.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox68.TabIndex = 69; this.pictureBox68.TabStop = false; // // pictureBox69 // this.pictureBox69.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox69.Image"))); this.pictureBox69.Location = new System.Drawing.Point(200, 96); this.pictureBox69.Name = "pictureBox69"; this.pictureBox69.Size = new System.Drawing.Size(32, 32); this.pictureBox69.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox69.TabIndex = 70; this.pictureBox69.TabStop = false; // // pictureBox70 // this.pictureBox70.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox70.Image"))); this.pictureBox70.Location = new System.Drawing.Point(176, 96); this.pictureBox70.Name = "pictureBox70"; this.pictureBox70.Size = new System.Drawing.Size(32, 32); this.pictureBox70.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox70.TabIndex = 71; this.pictureBox70.TabStop = false; // // pictureBox71 // this.pictureBox71.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox71.Image"))); this.pictureBox71.Location = new System.Drawing.Point(144, 96); this.pictureBox71.Name = "pictureBox71"; this.pictureBox71.Size = new System.Drawing.Size(32, 32); this.pictureBox71.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox71.TabIndex = 72; this.pictureBox71.TabStop = false; // // pictureBox72 // this.pictureBox72.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox72.Image"))); this.pictureBox72.Location = new System.Drawing.Point(120, 96); this.pictureBox72.Name = "pictureBox72"; this.pictureBox72.Size = new System.Drawing.Size(32, 32); this.pictureBox72.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox72.TabIndex = 73; this.pictureBox72.TabStop = false; // // pictureBox73 // this.pictureBox73.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox73.Image"))); this.pictureBox73.Location = new System.Drawing.Point(88, 96); this.pictureBox73.Name = "pictureBox73"; this.pictureBox73.Size = new System.Drawing.Size(32, 32); this.pictureBox73.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox73.TabIndex = 74; this.pictureBox73.TabStop = false; // // pictureBox74 // this.pictureBox74.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox74.Image"))); this.pictureBox74.Location = new System.Drawing.Point(8, 96); this.pictureBox74.Name = "pictureBox74"; this.pictureBox74.Size = new System.Drawing.Size(32, 32); this.pictureBox74.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox74.TabIndex = 75; this.pictureBox74.TabStop = false; // // pictureBox75 // this.pictureBox75.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox75.Image"))); this.pictureBox75.Location = new System.Drawing.Point(64, 96); this.pictureBox75.Name = "pictureBox75"; this.pictureBox75.Size = new System.Drawing.Size(32, 32); this.pictureBox75.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox75.TabIndex = 76; this.pictureBox75.TabStop = false; // // pictureBox76 // this.pictureBox76.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox76.Image"))); this.pictureBox76.Location = new System.Drawing.Point(32, 96); this.pictureBox76.Name = "pictureBox76"; this.pictureBox76.Size = new System.Drawing.Size(32, 32); this.pictureBox76.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox76.TabIndex = 77; this.pictureBox76.TabStop = false; // // pictureBox77 // this.pictureBox77.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox77.Image"))); this.pictureBox77.Location = new System.Drawing.Point(256, 312); this.pictureBox77.Name = "pictureBox77"; this.pictureBox77.Size = new System.Drawing.Size(32, 32); this.pictureBox77.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox77.TabIndex = 78; this.pictureBox77.TabStop = false; // // pictureBox78 // this.pictureBox78.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox78.Image"))); this.pictureBox78.Location = new System.Drawing.Point(232, 312); this.pictureBox78.Name = "pictureBox78"; this.pictureBox78.Size = new System.Drawing.Size(32, 32); this.pictureBox78.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox78.TabIndex = 79; this.pictureBox78.TabStop = false; // // pictureBox79 // this.pictureBox79.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox79.Image"))); this.pictureBox79.Location = new System.Drawing.Point(256, 288); this.pictureBox79.Name = "pictureBox79"; this.pictureBox79.Size = new System.Drawing.Size(32, 32); this.pictureBox79.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox79.TabIndex = 80; this.pictureBox79.TabStop = false; // // pictureBox80 // this.pictureBox80.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox80.Image"))); this.pictureBox80.Location = new System.Drawing.Point(176, 240); this.pictureBox80.Name = "pictureBox80"; this.pictureBox80.Size = new System.Drawing.Size(32, 32); this.pictureBox80.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox80.TabIndex = 81; this.pictureBox80.TabStop = false; // // pictureBox81 // this.pictureBox81.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox81.Image"))); this.pictureBox81.Location = new System.Drawing.Point(200, 216); this.pictureBox81.Name = "pictureBox81"; this.pictureBox81.Size = new System.Drawing.Size(32, 32); this.pictureBox81.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox81.TabIndex = 82; this.pictureBox81.TabStop = false; // // pictureBox82 // this.pictureBox82.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox82.Image"))); this.pictureBox82.Location = new System.Drawing.Point(176, 216); this.pictureBox82.Name = "pictureBox82"; this.pictureBox82.Size = new System.Drawing.Size(32, 32); this.pictureBox82.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox82.TabIndex = 83; this.pictureBox82.TabStop = false; // // pictureBox83 // this.pictureBox83.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox83.Image"))); this.pictureBox83.Location = new System.Drawing.Point(200, 192); this.pictureBox83.Name = "pictureBox83"; this.pictureBox83.Size = new System.Drawing.Size(32, 32); this.pictureBox83.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox83.TabIndex = 84; this.pictureBox83.TabStop = false; // // pictureBox84 // this.pictureBox84.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox84.Image"))); this.pictureBox84.Location = new System.Drawing.Point(176, 192); this.pictureBox84.Name = "pictureBox84"; this.pictureBox84.Size = new System.Drawing.Size(32, 32); this.pictureBox84.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox84.TabIndex = 85; this.pictureBox84.TabStop = false; // // pictureBox85 // this.pictureBox85.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox85.Image"))); this.pictureBox85.Location = new System.Drawing.Point(200, 168); this.pictureBox85.Name = "pictureBox85"; this.pictureBox85.Size = new System.Drawing.Size(32, 32); this.pictureBox85.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox85.TabIndex = 86; this.pictureBox85.TabStop = false; // // pictureBox86 // this.pictureBox86.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox86.Image"))); this.pictureBox86.Location = new System.Drawing.Point(176, 168); this.pictureBox86.Name = "pictureBox86"; this.pictureBox86.Size = new System.Drawing.Size(32, 32); this.pictureBox86.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox86.TabIndex = 87; this.pictureBox86.TabStop = false; // // pictureBox87 // this.pictureBox87.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox87.Image"))); this.pictureBox87.Location = new System.Drawing.Point(200, 144); this.pictureBox87.Name = "pictureBox87"; this.pictureBox87.Size = new System.Drawing.Size(32, 32); this.pictureBox87.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox87.TabIndex = 88; this.pictureBox87.TabStop = false; // // pictureBox88 // this.pictureBox88.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox88.Image"))); this.pictureBox88.Location = new System.Drawing.Point(176, 144); this.pictureBox88.Name = "pictureBox88"; this.pictureBox88.Size = new System.Drawing.Size(32, 32); this.pictureBox88.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox88.TabIndex = 89; this.pictureBox88.TabStop = false; // // pictureBox89 // this.pictureBox89.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox89.Image"))); this.pictureBox89.Location = new System.Drawing.Point(200, 120); this.pictureBox89.Name = "pictureBox89"; this.pictureBox89.Size = new System.Drawing.Size(32, 32); this.pictureBox89.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox89.TabIndex = 90; this.pictureBox89.TabStop = false; // // pictureBox90 // this.pictureBox90.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox90.Image"))); this.pictureBox90.Location = new System.Drawing.Point(176, 120); this.pictureBox90.Name = "pictureBox90"; this.pictureBox90.Size = new System.Drawing.Size(32, 32); this.pictureBox90.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox90.TabIndex = 91; this.pictureBox90.TabStop = false; // // pictureBox91 // this.pictureBox91.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox91.Image"))); this.pictureBox91.Location = new System.Drawing.Point(144, 312); this.pictureBox91.Name = "pictureBox91"; this.pictureBox91.Size = new System.Drawing.Size(32, 32); this.pictureBox91.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox91.TabIndex = 92; this.pictureBox91.TabStop = false; // // pictureBox92 // this.pictureBox92.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox92.Image"))); this.pictureBox92.Location = new System.Drawing.Point(120, 312); this.pictureBox92.Name = "pictureBox92"; this.pictureBox92.Size = new System.Drawing.Size(32, 32); this.pictureBox92.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox92.TabIndex = 93; this.pictureBox92.TabStop = false; // // pictureBox93 // this.pictureBox93.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox93.Image"))); this.pictureBox93.Location = new System.Drawing.Point(120, 120); this.pictureBox93.Name = "pictureBox93"; this.pictureBox93.Size = new System.Drawing.Size(32, 32); this.pictureBox93.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox93.TabIndex = 94; this.pictureBox93.TabStop = false; // // pictureBox94 // this.pictureBox94.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox94.Image"))); this.pictureBox94.Location = new System.Drawing.Point(64, 312); this.pictureBox94.Name = "pictureBox94"; this.pictureBox94.Size = new System.Drawing.Size(32, 32); this.pictureBox94.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox94.TabIndex = 95; this.pictureBox94.TabStop = false; // // pictureBox95 // this.pictureBox95.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox95.Image"))); this.pictureBox95.Location = new System.Drawing.Point(88, 288); this.pictureBox95.Name = "pictureBox95"; this.pictureBox95.Size = new System.Drawing.Size(32, 32); this.pictureBox95.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox95.TabIndex = 96; this.pictureBox95.TabStop = false; // // pictureBox96 // this.pictureBox96.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox96.Image"))); this.pictureBox96.Location = new System.Drawing.Point(64, 288); this.pictureBox96.Name = "pictureBox96"; this.pictureBox96.Size = new System.Drawing.Size(32, 32); this.pictureBox96.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox96.TabIndex = 97; this.pictureBox96.TabStop = false; // // pictureBox97 // this.pictureBox97.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox97.Image"))); this.pictureBox97.Location = new System.Drawing.Point(88, 264); this.pictureBox97.Name = "pictureBox97"; this.pictureBox97.Size = new System.Drawing.Size(32, 32); this.pictureBox97.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox97.TabIndex = 98; this.pictureBox97.TabStop = false; // // pictureBox98 // this.pictureBox98.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox98.Image"))); this.pictureBox98.Location = new System.Drawing.Point(64, 264); this.pictureBox98.Name = "pictureBox98"; this.pictureBox98.Size = new System.Drawing.Size(32, 32); this.pictureBox98.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox98.TabIndex = 99; this.pictureBox98.TabStop = false; // // pictureBox99 // this.pictureBox99.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox99.Image"))); this.pictureBox99.Location = new System.Drawing.Point(88, 240); this.pictureBox99.Name = "pictureBox99"; this.pictureBox99.Size = new System.Drawing.Size(32, 32); this.pictureBox99.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox99.TabIndex = 100; this.pictureBox99.TabStop = false; // // pictureBox100 // this.pictureBox100.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox100.Image"))); this.pictureBox100.Location = new System.Drawing.Point(64, 216); this.pictureBox100.Name = "pictureBox100"; this.pictureBox100.Size = new System.Drawing.Size(32, 32); this.pictureBox100.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pictureBox100.TabIndex = 101; this.pictureBox100.TabStop = false; // // chooseParentsButton // this.chooseParentsButton.BackColor = System.Drawing.Color.Turquoise; this.chooseParentsButton.Enabled = false; this.chooseParentsButton.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.chooseParentsButton.Location = new System.Drawing.Point(664, 280); this.chooseParentsButton.Name = "chooseParentsButton"; this.chooseParentsButton.Size = new System.Drawing.Size(112, 48); this.chooseParentsButton.TabIndex = 102; this.chooseParentsButton.Text = "Select Parents"; this.chooseParentsButton.Click += new System.EventHandler(this.button1_Click); // // pictureBox101 // this.pictureBox101.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox101.Image"))); this.pictureBox101.Location = new System.Drawing.Point(416, 264); this.pictureBox101.Name = "pictureBox101"; this.pictureBox101.Size = new System.Drawing.Size(80, 80); this.pictureBox101.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox101.TabIndex = 103; this.pictureBox101.TabStop = false; this.pictureBox101.Click += new System.EventHandler(this.pictureBox101_Click); // // pictureBox102 // this.pictureBox102.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox102.Image"))); this.pictureBox102.Location = new System.Drawing.Point(208, 376); this.pictureBox102.Name = "pictureBox102"; this.pictureBox102.Size = new System.Drawing.Size(56, 48); this.pictureBox102.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox102.TabIndex = 115; this.pictureBox102.TabStop = false; this.pictureBox102.Click += new System.EventHandler(this.pictureBox102_Click); // // checkFitness // this.checkFitness.BackColor = System.Drawing.Color.Turquoise; this.checkFitness.Enabled = false; this.checkFitness.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.checkFitness.Location = new System.Drawing.Point(664, 152); this.checkFitness.Name = "checkFitness"; this.checkFitness.Size = new System.Drawing.Size(112, 72); this.checkFitness.TabIndex = 117; this.checkFitness.Text = "Assess Generation Fitness"; this.checkFitness.Click += new System.EventHandler(this.checkFitness_Click); // // newGeneration // this.newGeneration.BackColor = System.Drawing.Color.Turquoise; this.newGeneration.Enabled = false; this.newGeneration.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.newGeneration.Location = new System.Drawing.Point(664, 336); this.newGeneration.Name = "newGeneration"; this.newGeneration.Size = new System.Drawing.Size(112, 48); this.newGeneration.TabIndex = 118; this.newGeneration.Text = "Spawn a new Generation"; this.newGeneration.Click += new System.EventHandler(this.newGeneration_Click); // // loops10 // this.loops10.BackColor = System.Drawing.Color.Turquoise; this.loops10.Enabled = false; this.loops10.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.loops10.Location = new System.Drawing.Point(664, 472); this.loops10.Name = "loops10"; this.loops10.Size = new System.Drawing.Size(112, 32); this.loops10.TabIndex = 119; this.loops10.Text = "10 Loops"; this.loops10.Click += new System.EventHandler(this.loops10_Click_1); // // sortArray // this.sortArray.BackColor = System.Drawing.Color.Turquoise; this.sortArray.Enabled = false; this.sortArray.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.sortArray.Location = new System.Drawing.Point(664, 232); this.sortArray.Name = "sortArray"; this.sortArray.Size = new System.Drawing.Size(112, 40); this.sortArray.TabIndex = 120; this.sortArray.Text = "Sort Array"; this.sortArray.Click += new System.EventHandler(this.button3_Click); // // label1 // this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label1.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; this.label1.Location = new System.Drawing.Point(496, 16); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(176, 16); this.label1.TabIndex = 121; this.label1.Text = "Click here to start --->"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // richTextBox1 // this.richTextBox1.AutoSize = true; this.richTextBox1.BackColor = System.Drawing.SystemColors.Info; this.richTextBox1.Font = new System.Drawing.Font("Comic Sans MS", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.richTextBox1.Location = new System.Drawing.Point(8, 552); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.Size = new System.Drawing.Size(888, 100); this.richTextBox1.TabIndex = 122; this.richTextBox1.Text = ""; // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.checkBox1.Location = new System.Drawing.Point(784, 208); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(120, 152); this.checkBox1.TabIndex = 123; this.checkBox1.Text = "Display Messages - This causes the program to output all information"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // MutateButton // this.MutateButton.BackColor = System.Drawing.Color.Turquoise; this.MutateButton.Enabled = false; this.MutateButton.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.MutateButton.Location = new System.Drawing.Point(664, 104); this.MutateButton.Name = "MutateButton"; this.MutateButton.Size = new System.Drawing.Size(112, 40); this.MutateButton.TabIndex = 124; this.MutateButton.Text = "Mutate"; this.MutateButton.Click += new System.EventHandler(this.MutateButton_Click); // // checkBox2 // this.checkBox2.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.checkBox2.Location = new System.Drawing.Point(792, 360); this.checkBox2.Name = "checkBox2"; this.checkBox2.Size = new System.Drawing.Size(120, 128); this.checkBox2.TabIndex = 125; this.checkBox2.Text = "Local Scatter - All soultions mutate slightly"; // // loops5 // this.loops5.BackColor = System.Drawing.Color.Turquoise; this.loops5.Enabled = false; this.loops5.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.loops5.Location = new System.Drawing.Point(664, 432); this.loops5.Name = "loops5"; this.loops5.Size = new System.Drawing.Size(112, 32); this.loops5.TabIndex = 126; this.loops5.Text = "5 Loops"; this.loops5.Click += new System.EventHandler(this.loops5_Click); // // loops20 // this.loops20.BackColor = System.Drawing.Color.Turquoise; this.loops20.Enabled = false; this.loops20.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.loops20.Location = new System.Drawing.Point(664, 392); this.loops20.Name = "loops20"; this.loops20.Size = new System.Drawing.Size(112, 32); this.loops20.TabIndex = 127; this.loops20.Text = "1 Loop"; this.loops20.Click += new System.EventHandler(this.loops20_Click); // // auto // this.auto.BackColor = System.Drawing.Color.Yellow; this.auto.Enabled = false; this.auto.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.auto.Location = new System.Drawing.Point(664, 512); this.auto.Name = "auto"; this.auto.Size = new System.Drawing.Size(112, 40); this.auto.TabIndex = 128; this.auto.Text = "Auto"; this.auto.Click += new System.EventHandler(this.auto_Click); // // textBox1 // this.textBox1.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.textBox1.Location = new System.Drawing.Point(864, 40); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(24, 26); this.textBox1.TabIndex = 129; this.textBox1.Text = "1"; this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // // timer1 // this.timer1.Interval = 50; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // label2 // this.label2.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label2.Location = new System.Drawing.Point(800, 16); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(96, 64); this.label2.TabIndex = 130; this.label2.Text = "Gene Select Method 1 or 2"; // // label4 // this.label4.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label4.Location = new System.Drawing.Point(800, 144); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(96, 32); this.label4.TabIndex = 134; this.label4.Text = "Kill Weakest"; // // textBox3 // this.textBox3.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.textBox3.Location = new System.Drawing.Point(864, 168); this.textBox3.Name = "textBox3"; this.textBox3.Size = new System.Drawing.Size(24, 26); this.textBox3.TabIndex = 133; this.textBox3.Text = "50"; this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged); // // label5 // this.label5.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label5.Location = new System.Drawing.Point(792, 88); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(104, 32); this.label5.TabIndex = 136; this.label5.Text = "Mutation Rate"; // // textBox4 // this.textBox4.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.textBox4.HideSelection = false; this.textBox4.Location = new System.Drawing.Point(840, 104); this.textBox4.Name = "textBox4"; this.textBox4.Size = new System.Drawing.Size(48, 26); this.textBox4.TabIndex = 135; this.textBox4.Text = "200"; this.textBox4.TextChanged += new System.EventHandler(this.textBox4_TextChanged); // // button1 // this.button1.BackColor = System.Drawing.Color.Turquoise; this.button1.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.button1.Location = new System.Drawing.Point(784, 512); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(112, 40); this.button1.TabIndex = 137; this.button1.Text = "Stop Auto"; this.button1.Click += new System.EventHandler(this.button1_Click_1); // // clearBox // this.clearBox.BackColor = System.Drawing.Color.Turquoise; this.clearBox.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.clearBox.Location = new System.Drawing.Point(800, 632); this.clearBox.Name = "clearBox"; this.clearBox.Size = new System.Drawing.Size(96, 24); this.clearBox.TabIndex = 138; this.clearBox.Text = "Clear Text Box"; this.clearBox.Click += new System.EventHandler(this.clearBox_Click); // // button2 // this.button2.Font = new System.Drawing.Font("Comic Sans MS", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.button2.Location = new System.Drawing.Point(784, 504); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(112, 40); this.button2.TabIndex = 137; this.button2.Text = "Stop Auto"; // // button6 // this.button6.Location = new System.Drawing.Point(808, 624); this.button6.Name = "button6"; this.button6.Size = new System.Drawing.Size(88, 24); this.button6.TabIndex = 138; this.button6.Text = "Clear Text Box"; // // label3 // this.label3.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.label3.Location = new System.Drawing.Point(8, 528); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(232, 24); this.label3.TabIndex = 139; this.label3.Text = "Average Generation Fitness"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.BackColor = System.Drawing.Color.White; this.ClientSize = new System.Drawing.Size(904, 662); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.pictureBox101, this.clearBox, this.textBox3, this.textBox1, this.textBox4, this.button1, this.label5, this.label4, this.label2, this.auto, this.loops20, this.loops5, this.checkBox2, this.MutateButton, this.checkBox1, this.richTextBox1, this.sortArray, this.loops10, this.newGeneration, this.checkFitness, this.chooseParentsButton, this.pictureBox100, this.pictureBox99, this.pictureBox98, this.pictureBox97, this.pictureBox96, this.pictureBox95, this.pictureBox94, this.pictureBox93, this.pictureBox92, this.pictureBox91, this.pictureBox90, this.pictureBox89, this.pictureBox88, this.pictureBox87, this.pictureBox86, this.pictureBox85, this.pictureBox84, this.pictureBox83, this.pictureBox82, this.pictureBox81, this.pictureBox80, this.pictureBox79, this.pictureBox78, this.pictureBox77, this.pictureBox76, this.pictureBox75, this.pictureBox74, this.pictureBox73, this.pictureBox72, this.pictureBox71, this.pictureBox70, this.pictureBox69, this.pictureBox68, this.pictureBox67, this.pictureBox66, this.pictureBox65, this.pictureBox64, this.pictureBox63, this.pictureBox62, this.pictureBox61, this.pictureBox60, this.pictureBox59, this.pictureBox58, this.pictureBox57, this.pictureBox56, this.pictureBox55, this.pictureBox54, this.pictureBox53, this.pictureBox52, this.pictureBox51, this.pictureBox50, this.pictureBox49, this.pictureBox48, this.pictureBox47, this.pictureBox46, this.pictureBox45, this.pictureBox44, this.pictureBox43, this.pictureBox42, this.pictureBox41, this.pictureBox40, this.pictureBox39, this.pictureBox38, this.pictureBox37, this.pictureBox36, this.pictureBox35, this.pictureBox34, this.pictureBox33, this.pictureBox32, this.pictureBox31, this.pictureBox30, this.pictureBox29, this.pictureBox28, this.pictureBox27, this.pictureBox26, this.pictureBox25, this.pictureBox24, this.pictureBox23, this.pictureBox22, this.pictureBox21, this.pictureBox20, this.pictureBox19, this.pictureBox18, this.pictureBox17, this.pictureBox16, this.pictureBox15, this.pictureBox14, this.pictureBox13, this.pictureBox12, this.pictureBox11, this.pictureBox10, this.pictureBox9, this.pictureBox8, this.pictureBox7, this.pictureBox6, this.pictureBox5, this.pictureBox4, this.pictureBox3, this.pictureBox2, this.pictureBox1, this.HelpMe, this.RandomiseBugs, this.label1, this.pictureBox102, this.button2, this.button6, this.label3}); this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Genetic Algorithm to find the best place for the spiders to live"; this.Load += new System.EventHandler(this.Form1_Load); this.ResumeLayout(false); } #endregion /// /// The main entry point for the application. /// /// ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// /// ////////////////////////////////////////////////////////////////// /// This is where my code begins ////// ////////////////////////////////////////////////////////////////////// //GLOBALS variables. These are shared by all my functions // rand is a random number generator. I ask it for a random number Random rand = new Random(); // 1 in how many bugs mutate? double mutationRate=1000; //which gene select method int geneSelectMethod = 2; //count the number of generations. Incremented when bugs moved int generationCounter=0; //max x coordinate for any bug int Lmax=650; //max y coordinate for any bug int Tmax=540; // this is to store the sorted fitness array double[] sortedFitnessArray= new double[100]; //convergence test bool areTheyAllAtTheSamePlace=false; // this is to store the fitness of each spider double[] fitnessArray = new double[100]; //array to hold spiders x coordinate double[] populationX = new double[100]; //array to hold spiders y coordinate double[] populationY = new double[100]; //array to hold childrens x coordinate double[] newPopulationX = new double[100]; //array to hold childrens y coordinate double[] newPopulationY = new double[100]; //Coordinates of the grass double grassX=0;double grassY=0; //Coordinates of the bird double birdX=0; double birdY=0; //this prevents the bottom elements from ever being selected //it is how the spiders the bird eats int killWeakest = 30; /// /// ////////////////////////////////////////////////////////////////// /// this is to start the program //// /// ///////////////////////////////////////////////////////////////// /// [STAThread] static void Main() { Application.Run(new Form1()); } /// /// //////////////////////////////////////////////////////////////////// /// this is the button to shuffle up the solution ///// /// /////////////////////////////////////////////////////////////////// /// private void RandomiseBugs_Click(object sender, System.EventArgs e) { // this is to make the auto buttons and the check fitness buttons to appear loops5.Enabled=true; loops10.Enabled=true; loops20.Enabled=true; auto.Enabled=true; //reset number of generations generationCounter=0; //clear text box richTextBox1.Text=""; MutateButton.Enabled=true; // i is to count the number of times through the loop int i; //loop through 100 array elements for (i =0;i<100;i++) { //Randomly choose x and y coordinates between 1,1 and LeftMax,TopMax //this is saves in populationX array and populationY array populationX[i]=rand.Next(1, Tmax); populationY[i]=rand.Next(1, Lmax); } //call the move boxes function to move the boxes to their desired location moveBoxes(); //randomly move bird birdX=rand.Next(1, Tmax); birdY=rand.Next(1, Lmax); pictureBox101.Top= (int)birdX; pictureBox101.Left=(int)birdY; //Randomly Position Grass grassX=rand.Next(1, Tmax); grassY=rand.Next(1, Lmax); pictureBox102.Top=(int)grassX; pictureBox102.Left=(int)grassY; //move arrow down to point to the next instruction label1.Top=128; label1.Text="Now Here -->"; } //bring up the help window private void HelpMe_Click(object sender, System.EventArgs e) { //move arrow down label1.Top=64; label1.Text="Now Here -->"; //show help window help frm=new help();//create the second window so any function can show it frm.Show(); } //This is the button to select the parents private void button1_Click(object sender, System.EventArgs e) { //there are multiple gene selection methods // as they deal with different types, i had to adapt the choose parents method // this calls the function number in textbox 1 if (Convert.ToInt16(textBox1.Text)==1) { chooseParents1(); } //this calls functiion 2 else if (Convert.ToInt16(textBox1.Text)==2) { chooseParents2(); } } //This section of code is run when the application loads private void Form1_Load(object sender, System.EventArgs e) { //Randomly Position Bird birdX=rand.Next(1, Tmax); birdY=rand.Next(1, Lmax); pictureBox101.Top=(int)birdX; pictureBox101.Left=(int)birdY; //Randomly Position Grass grassX=rand.Next(1, Tmax); grassY=rand.Next(1, Lmax); pictureBox102.Top= (int)grassX; pictureBox102.Left=(int)grassY; } //this is to move the bird when the button is clicked private void pictureBox101_Click(object sender, System.EventArgs e) {//randomly move bird birdX=rand.Next(1, Tmax); birdY=rand.Next(1, Lmax); pictureBox101.Top=(int)birdX; pictureBox101.Left=(int)birdY; } //this is the grass. When it is clicked, it moves to a random location private void pictureBox102_Click(object sender, System.EventArgs e) { //Randomly Position Grass grassX=rand.Next(1, Tmax); grassY=rand.Next(1, Lmax); pictureBox102.Top=(int)grassX; pictureBox102.Left=(int)grassY; } //this is the check fitness button private void checkFitness_Click(object sender, System.EventArgs e) { //when it is clicked, it calls the calculate generation fitness method calculateGenFitness(); } //this button is to sort the array private void button3_Click(object sender, System.EventArgs e) { //call sort fit array sortFitArray(); } //make new array becom old array then refresh screen private void newGeneration_Click(object sender, System.EventArgs e) { nextGeneration(); } //mutation button private void MutateButton_Click(object sender, System.EventArgs e) { //call mutate function mutate(); } public void mutate() { //move the label down label1.Top=280; label1.Text="-->"; //enable next button in sequence checkFitness.Enabled=true; //spidercount counts through the spiders int spiderCounter; for (spiderCounter=0;spiderCounter<100;spiderCounter++) { //choose 2 random numbers int randomNumber1 = rand.Next(1,(int)mutationRate); int randomNumber2 = rand.Next(1,(int)mutationRate); // every spider has a 1 in mutation rate chance of mutating //if they are equal then mutate a spider if (randomNumber1==randomNumber2) { //choose random spider int y = rand.Next(0,99); //if desired, output the mutation if (checkBox1.Checked==true){MessageBox.Show("Bug " + Convert.ToString(y) + " Has Mutated");} //randomly change an x or y value //if (randomNumber1>(mutationRate/2)) //{ populationX[y]=rand.Next(1, Tmax); //} //else //{ populationY[y]=rand.Next(1, Lmax); //} } } } //select parent dunction. Randomly chooses a parent number between killWeakest and 100, bias towards 100 public int selectParent() { int i=0; //it chooses a number between 0 and kill weakest. Kill weakest can be user defined i=killWeakest+rand.Next(0,100-killWeakest); //it chooses another and adds it to i i+=killWeakest+rand.Next(0,100-killWeakest); //the principle is: //if you roll 2 dice, on average it will add up to 12. // if you choose 2 numbers between 0 and 100 then add them, on average it will be 100 //if its 105, 200-105=95. if (i>100) { i=200-i; } //to cure a bug i found with my method //in the case where the final result is below kill weakest //ie 95+95 = 190. // 200-190 = 10 =======>could be less than kill weakest //keep calling this function until its valid while (i= 0; i--) { //compare every j to i for (j = 1; j <= i; j++) { //check if need to be switched if (fitnessArray[j-1] > fitnessArray[j]) { double temp,temp2,temp3; //put 1st item in temp temp = fitnessArray[j-1]; temp2=populationX[j-1]; temp3=populationY[j-1]; //put 2nd item in 1st's place fitnessArray[j-1] = fitnessArray[j]; populationX[j-1]=populationX[j]; populationY[j-1]=populationY[j]; //put temp in 2nd's place fitnessArray[j] = temp; populationX[j]=temp2; populationY[j]=temp3; } } } //if box is checked, output tempstring if (checkBox1.Checked==true) { //display sorted array int spiderCounter=0; string tempString; tempString="Fitness Array: \n"; for(spiderCounter=0;spiderCounter<100;spiderCounter++) { tempString+=" "+Convert.ToString((int)fitnessArray[spiderCounter]); } MessageBox.Show(tempString);} //move arrow down to point to the next instruction label1.Top=232; label1.Text="-->"; } //calculates fitnessess and saves in fit array public void calculateGenFitness() { //hold the fitness double groupFitness=0; //this will remain true until a bug has a different fitness areTheyAllAtTheSamePlace=true; //enable sort array button sortArray.Enabled=true; //loop through all the spiders int spiderCounter=0; string outputString; int thisGenerationAverage=0; outputString="Fitness = Bird Distance - Grass Distance \n"; for(spiderCounter=0;spiderCounter<100;spiderCounter++) { double myFitness=0; double birdDist=0; double grassDist=0; //calculate distance from bird birdDist=calcDistance(birdX,birdY,populationX[spiderCounter],populationY[spiderCounter]); //calculate distance from grass grassDist=calcDistance(grassX,grassY,populationX[spiderCounter],populationY[spiderCounter]); //calculate Fitness /* Bird Grass Fitness (Bird-Grass) * far near max * 500 0 MAX 500 * near far min * 0 500 MIN -500 */ myFitness=birdDist-grassDist; //add to array fitnessArray[spiderCounter]=myFitness; //convergence test if (spiderCounter==0){groupFitness=myFitness;} if (myFitness!=groupFitness){areTheyAllAtTheSamePlace=false;} //output data outputString += "Spider Number :" + Convert.ToString((int)spiderCounter) + " Grass Distance : " + Convert.ToString((int)grassDist)+ " Bird Distance : " +Convert.ToString((int)birdDist) +" Fitness : " + Convert.ToString((int)myFitness) + " \n"; thisGenerationAverage+=(int)myFitness; } //break loop if all the same if (areTheyAllAtTheSamePlace==true) { //stop timer timer1.Stop(); MessageBox.Show("Maximum Fitness found:" + Convert.ToString(groupFitness) + "\nIt took "+Convert.ToString(generationCounter)+" Generations\nThe Best Location found at X="+Convert.ToString(populationX[0])+" Y="+Convert.ToString(populationY[0])); } //if display messages button iss clicked, output the numbers in a msg box if (checkBox1.Checked==true) { MessageBox.Show(outputString);} richTextBox1.Text+= " " + (Convert.ToString(thisGenerationAverage/100)); //move arrow down to point to the next instruction label1.Top=184; label1.Text="--> "; } //takes x1y1 and x2y2 and returns the distance public double calcDistance(double x1,double y1,double x2,double y2) { double x = x2-x1;//difference between 2 x points double y = y2-y1;//difference between 2 y points //use pythag and return value return ( Math.Sqrt((x*x)+(y*y))); } //moves picture boxes to places in X array and Y array public void moveBoxes() {//this is ugly coding. sorry. I couldnt get it to work dynamically pictureBox1.Top=(int)populationX[0]; pictureBox1.Left=(int)populationY[0]; pictureBox2.Top=(int)populationX[1]; pictureBox2.Left=(int)populationY[1]; pictureBox3.Top=(int)populationX[2]; pictureBox3.Left=(int)populationY[2]; pictureBox4.Left=(int)populationY[3]; pictureBox4.Top=(int)populationX[3]; pictureBox5.Top=(int)populationX[4]; pictureBox5.Left=(int)populationY[4]; pictureBox6.Top=(int)populationX[5]; pictureBox6.Left=(int)populationY[5]; pictureBox7.Top=(int)populationX[6]; pictureBox7.Left=(int)populationY[6]; pictureBox8.Top=(int)populationX[7]; pictureBox8.Left=(int)populationY[7]; pictureBox9.Top=(int)populationX[8]; pictureBox9.Left=(int)populationY[8]; pictureBox10.Top=(int)populationX[9]; pictureBox10.Left=(int)populationY[9]; pictureBox11.Top=(int)populationX[10]; pictureBox11.Left=(int)populationY[10]; pictureBox12.Top=(int)populationX[11]; pictureBox12.Left=(int)populationY[11]; pictureBox13.Top=(int)populationX[12]; pictureBox13.Left=(int)populationY[12]; pictureBox14.Left=(int)populationY[13]; pictureBox14.Top=(int)populationX[13]; pictureBox15.Top=(int)populationX[14]; pictureBox15.Left=(int)populationY[14]; pictureBox16.Top=(int)populationX[15]; pictureBox16.Left=(int)populationY[15]; pictureBox17.Top=(int)populationX[16]; pictureBox17.Left=(int)populationY[16]; pictureBox18.Top=(int)populationX[17]; pictureBox18.Left=(int)populationY[17]; pictureBox19.Top=(int)populationX[18]; pictureBox19.Left=(int)populationY[18]; pictureBox20.Top=(int)populationX[19]; pictureBox20.Left=(int)populationY[19]; pictureBox21.Top=(int)populationX[20]; pictureBox21.Left=(int)populationY[20]; pictureBox22.Top=(int)populationX[21]; pictureBox22.Left=(int)populationY[21]; pictureBox23.Top=(int)populationX[22]; pictureBox23.Left=(int)populationY[22]; pictureBox24.Left=(int)populationY[23]; pictureBox24.Top=(int)populationX[23]; pictureBox25.Top=(int)populationX[24]; pictureBox25.Left=(int)populationY[24]; pictureBox26.Top=(int)populationX[25]; pictureBox26.Left=(int)populationY[25]; pictureBox27.Top=(int)populationX[26]; pictureBox27.Left=(int)populationY[26]; pictureBox28.Top=(int)populationX[27]; pictureBox28.Left=(int)populationY[27]; pictureBox29.Top=(int)populationX[28]; pictureBox29.Left=(int)populationY[28]; pictureBox30.Top=(int)populationX[29]; pictureBox30.Left=(int)populationY[29]; pictureBox31.Top=(int)populationX[30]; pictureBox31.Left=(int)populationY[30]; pictureBox32.Top=(int)populationX[31]; pictureBox32.Left=(int)populationY[31]; pictureBox33.Top=(int)populationX[32]; pictureBox33.Left=(int)populationY[32]; pictureBox34.Left=(int)populationY[33]; pictureBox34.Top=(int)populationX[33]; pictureBox35.Top=(int)populationX[34]; pictureBox35.Left=(int)populationY[34]; pictureBox36.Top=(int)populationX[35]; pictureBox36.Left=(int)populationY[35]; pictureBox37.Top=(int)populationX[36]; pictureBox37.Left=(int)populationY[36]; pictureBox38.Top=(int)populationX[37]; pictureBox38.Left=(int)populationY[37]; pictureBox39.Top=(int)populationX[38]; pictureBox39.Left=(int)populationY[38]; pictureBox40.Top=(int)populationX[39]; pictureBox40.Left=(int)populationY[39]; pictureBox41.Top=(int)populationX[40]; pictureBox41.Left=(int)populationY[40]; pictureBox42.Top=(int)populationX[41]; pictureBox42.Left=(int)populationY[41]; pictureBox43.Top=(int)populationX[42]; pictureBox43.Left=(int)populationY[42]; pictureBox44.Left=(int)populationY[43]; pictureBox44.Top=(int)populationX[43]; pictureBox45.Top=(int)populationX[44]; pictureBox45.Left=(int)populationY[44]; pictureBox46.Top=(int)populationX[45]; pictureBox46.Left=(int)populationY[45]; pictureBox47.Top=(int)populationX[46]; pictureBox47.Left=(int)populationY[46]; pictureBox48.Top=(int)populationX[47]; pictureBox48.Left=(int)populationY[47]; pictureBox49.Top=(int)populationX[48]; pictureBox49.Left=(int)populationY[48]; pictureBox50.Top=(int)populationX[49]; pictureBox50.Left=(int)populationY[49]; pictureBox51.Top=(int)populationX[50]; pictureBox51.Left=(int)populationY[50]; pictureBox52.Top=(int)populationX[51]; pictureBox52.Left=(int)populationY[51]; pictureBox53.Top=(int)populationX[52]; pictureBox53.Left=(int)populationY[52]; pictureBox54.Left=(int)populationY[53]; pictureBox54.Top=(int)populationX[53]; pictureBox55.Top=(int)populationX[54]; pictureBox55.Left=(int)populationY[54]; pictureBox56.Top=(int)populationX[55]; pictureBox56.Left=(int)populationY[55]; pictureBox57.Top=(int)populationX[56]; pictureBox57.Left=(int)populationY[56]; pictureBox58.Top=(int)populationX[57]; pictureBox58.Left=(int)populationY[57]; pictureBox59.Top=(int)populationX[58]; pictureBox59.Left=(int)populationY[58]; pictureBox60.Top=(int)populationX[59]; pictureBox60.Left=(int)populationY[29]; pictureBox61.Top=(int)populationX[60]; pictureBox61.Left=(int)populationY[60]; pictureBox62.Top=(int)populationX[61]; pictureBox62.Left=(int)populationY[61]; pictureBox63.Top=(int)populationX[62]; pictureBox63.Left=(int)populationY[62]; pictureBox64.Left=(int)populationY[63]; pictureBox64.Top=(int)populationX[63]; pictureBox65.Top=(int)populationX[64]; pictureBox65.Left=(int)populationY[64]; pictureBox66.Top=(int)populationX[65]; pictureBox66.Left=(int)populationY[65]; pictureBox67.Top=(int)populationX[66]; pictureBox67.Left=(int)populationY[66]; pictureBox68.Top=(int)populationX[67]; pictureBox68.Left=(int)populationY[67]; pictureBox69.Top=(int)populationX[68]; pictureBox69.Left=(int)populationY[68]; pictureBox70.Top=(int)populationX[69]; pictureBox70.Left=(int)populationY[69]; pictureBox71.Top=(int)populationX[70]; pictureBox71.Left=(int)populationY[70]; pictureBox72.Top=(int)populationX[71]; pictureBox72.Left=(int)populationY[71]; pictureBox73.Top=(int)populationX[72]; pictureBox73.Left=(int)populationY[72]; pictureBox74.Left=(int)populationY[73]; pictureBox74.Top=(int)populationX[73]; pictureBox75.Top=(int)populationX[74]; pictureBox75.Left=(int)populationY[74]; pictureBox76.Top=(int)populationX[75]; pictureBox76.Left=(int)populationY[75]; pictureBox77.Top=(int)populationX[76]; pictureBox77.Left=(int)populationY[76]; pictureBox78.Top=(int)populationX[77]; pictureBox78.Left=(int)populationY[77]; pictureBox79.Top=(int)populationX[78]; pictureBox79.Left=(int)populationY[78]; pictureBox80.Top=(int)populationX[79]; pictureBox80.Left=(int)populationY[79]; pictureBox81.Top=(int)populationX[80]; pictureBox81.Left=(int)populationY[80]; pictureBox82.Top=(int)populationX[81]; pictureBox82.Left=(int)populationY[81]; pictureBox83.Top=(int)populationX[82]; pictureBox83.Left=(int)populationY[82]; pictureBox84.Left=(int)populationY[83]; pictureBox84.Top=(int)populationX[83]; pictureBox85.Top=(int)populationX[84]; pictureBox85.Left=(int)populationY[84]; pictureBox86.Top=(int)populationX[85]; pictureBox86.Left=(int)populationY[85]; pictureBox87.Top=(int)populationX[86]; pictureBox87.Left=(int)populationY[86]; pictureBox88.Top=(int)populationX[87]; pictureBox88.Left=(int)populationY[87]; pictureBox89.Top=(int)populationX[88]; pictureBox89.Left=(int)populationY[88]; pictureBox90.Top=(int)populationX[89]; pictureBox90.Left=(int)populationY[89]; pictureBox91.Top=(int)populationX[90]; pictureBox91.Left=(int)populationY[90]; pictureBox92.Top=(int)populationX[91]; pictureBox92.Left=(int)populationY[91]; pictureBox93.Top=(int)populationX[92]; pictureBox93.Left=(int)populationY[92]; pictureBox94.Left=(int)populationY[93]; pictureBox94.Top=(int)populationX[93]; pictureBox95.Top=(int)populationX[94]; pictureBox95.Left=(int)populationY[94]; pictureBox96.Top=(int)populationX[95]; pictureBox96.Left=(int)populationY[95]; pictureBox97.Top=(int)populationX[96]; pictureBox97.Left=(int)populationY[96]; pictureBox98.Top=(int)populationX[97]; pictureBox98.Left=(int)populationY[97]; pictureBox99.Top=(int)populationX[98]; pictureBox99.Left=(int)populationY[98]; pictureBox100.Top=(int)populationX[99]; pictureBox100.Left=(int)populationY[99]; } // //function to loop through 1 cycle when called public void loopThrough() { mutate(); calculateGenFitness(); sortFitArray(); // this calls the function number in textbox 1 // genechoose2 doesnt work properly if (Convert.ToInt16(textBox1.Text)==1) { chooseParents1(); } else if (Convert.ToInt16(textBox1.Text)==2) { chooseParents2(); } nextGeneration(); } //loop through cycle 5 times private void loops5_Click(object sender, System.EventArgs e) { int i=0; for (i = 0; i < 5;i++) { loopThrough(); } } //loop through cycle 20 times private void loops20_Click(object sender, System.EventArgs e) { loopThrough(); } //loop through cycle 10 times private void loops10_Click_1(object sender, System.EventArgs e) { int i=0; for ( i = 0; i < 10;i++) { loopThrough(); } } //loop until convergence private void auto_Click(object sender, System.EventArgs e) { if (checkBox1.Checked==false) { timer1.Start(); } else { MessageBox.Show("You cannot use auto when messages are on"); } } /// ////////////////////////////////////////////////////// /// beginning of useless code /// this section does not work but it was another method that may work better if corrected //gene choose 2 public void chooseParents2() { label1.Top=328; label1.Text="-->"; newGeneration.Enabled=true; string myString; myString="This is the list of spiders to mate \n\nSpider 100 is the Fittest and Spider 1 is the most unfit.\n"; myString +="\nThe bird eats " + Convert.ToString(killWeakest)+" near by spiders per round\n"; myString +="\n100 spiders are cross bread to produce 100 new spiders\n\n"; int loopy=0; int parent1; int parent2; for (loopy=0;loopy<50;loopy++) { parent1=selectParent(); parent2=selectParent(); myString +=" " + Convert.ToString(parent1); myString +="+" + Convert.ToString(parent2); string p1X,p1Y,p2X,p2Y; p1X="";p1Y="";p2X="";p2Y=""; p1X=Convert.ToString(populationX[parent1]); p1Y=Convert.ToString(populationY[parent1]); p2X=Convert.ToString(populationX[parent2]); p2Y=Convert.ToString(populationY[parent2]); //add the zero's at the start of low numbers while (p1X.Length<3){p1X="0"+p1X;} while (p1Y.Length<3){p1Y="0"+p1Y;} while (p2X.Length<3){p2X="0"+p2X;} while (p2Y.Length<3){p2Y="0"+p2Y;} //send 12 chars, parent 1,parent 2, recieve kid 1,kid2 string geneChoiceString=geneChoose2(p1X+p1Y+p2X+p2Y); //string p1X,p1Y,p2X,p2Y; p1X="";p1Y="";p2X="";p2Y=""; p1X+=geneChoiceString[0]; p1X+=geneChoiceString[1]; p1X+=geneChoiceString[2]; p1Y+=geneChoiceString[3]; p1Y+=geneChoiceString[4]; p1Y+=geneChoiceString[5]; p2X+=geneChoiceString[6]; p2X+=geneChoiceString[7]; p2X+=geneChoiceString[8]; p2Y+=geneChoiceString[9]; p2Y+=geneChoiceString[10]; p2Y+=geneChoiceString[11]; newPopulationX[loopy]=Convert.ToDouble(p1X); newPopulationY[loopy]=Convert.ToDouble(p1Y); newPopulationX[loopy+1]=Convert.ToDouble(p2X); newPopulationY[loopy+1]=Convert.ToDouble(p2Y); } //myString=Convert.ToString(b); if (checkBox1.Checked==true) { MessageBox.Show(myString); } } /// /// geneChoose2 does not work !!! /// /// /// /// //recieves 12 charachter string. p1x,p1y,p2x,p2y public string geneChoose2(string inputString) {//this should recieve a 12 digit string and return 2 kids string outstring; outstring=""; int x; //chose a crossoverpoint between 0 and 6 int crossoverpoint = (int) rand.Next(0,5); //choose crossover point for (x = 0;x<6;x++) { if (xend of useless code /// /////////////////////////////////////////// /// //gene choose 1 public void chooseParents1() { label1.Top=328; label1.Text="-->"; newGeneration.Enabled=true; //this only shows if the messages are set to not show string myString; myString="This is the list of spiders to mate \n\nSpider 100 is the Fittest and Spider 1 is the most unfit.\n"; myString +="\nThe bird eats " + Convert.ToString(killWeakest)+" near by spiders per round\n"; myString +="\n200 spiders are cross bread to produce 100 new spiders\n\n"; //loop through 100 times int loopy=0; int parent1; int parent2; for (loopy=0;loopy<100;loopy++) { //select 2 parents parent1=selectParent(); parent2=selectParent(); //add them to output string myString +=" " + Convert.ToString(parent1); myString +="+" + Convert.ToString(parent2); //choose a gene and save it in new array newPopulationX[loopy]=(int)geneChoose1(populationX[parent1],populationX[parent2]); newPopulationY[loopy]=(int)geneChoose1(populationY[parent1],populationY[parent2]); } //myString=Convert.ToString(b); if (checkBox1.Checked==true) { MessageBox.Show(myString); } } //takes 2 numbers and returns a number between the 2 public double geneChoose1(double x1,double x2) { int theTempRandom = rand.Next(1,100); double didtanceBetweenParents=x2-x1; int localScatter = ((int)rand.Next(0,30))-15; if (checkBox2.Checked==false) { localScatter=0; } if (theTempRandom<20) { // if theTempRandom is less than 20, choose 1st num return x1+localScatter; } else if (theTempRandom<40) {// if theTempRandom is 20-40, choose 2nd num return x2+localScatter; } else if (theTempRandom<60) {// if theTempRandom is 40-60, choose 1/3 of the way between return (x1+(didtanceBetweenParents/3))+localScatter; } else if (theTempRandom<80) {// if theTempRandom is 60-80, choose 1/2 of the way between return (x1+(2*didtanceBetweenParents/2))+localScatter; } else {// if theTempRandom is 80-100, choose 2/3 of the way between return (x1+(2*didtanceBetweenParents/3))+localScatter; } } //this is to allow a small time delay so the screen can refresh private void timer1_Tick(object sender, System.EventArgs e) { loopThrough(); } //reads the value from the text box and saves it as mutation rate private void textBox4_TextChanged(object sender, System.EventArgs e) { if (textBox4.Text==""){textBox4.Text="100";} mutationRate=Convert.ToInt16(textBox4.Text); } //reads the value from the text box and saves it as kill weakest private void textBox3_TextChanged(object sender, System.EventArgs e) { if (textBox3.Text==""){textBox3.Text="20";}//error handling killWeakest = Convert.ToInt16(textBox3.Text); } //reads the value from the text box and saves it as gene select method. method 2 does not work. it has to be method 1. private void textBox1_TextChanged(object sender, System.EventArgs e) { if (textBox1.Text==""){textBox1.Text="1";}//force text to say 1 if its deleted else if ((textBox1.Text!="1")&&(textBox1.Text!="2")){textBox1.Text="1";}//say 1 if it doesnt say 1 or 2 geneSelectMethod=Convert.ToInt16(textBox1.Text); } //stop the timer, break the loop. private void button1_Click_1(object sender, System.EventArgs e) { timer1.Stop(); } //stop auto button private void checkBox1_CheckedChanged(object sender, System.EventArgs e) { //break from loop to prevent a million boxes loading up timer1.Stop(); } private void clearBox_Click(object sender, System.EventArgs e) { //clear text box richTextBox1.Text=""; } } }