Images are now saved and you can have randomized values at the generation and a name can be chooen for the simulation

This commit is contained in:
2022-05-05 11:36:37 +02:00
parent beb4658c95
commit c8b38b5d6b
6 changed files with 331 additions and 184 deletions
+33 -18
View File
@@ -50,6 +50,7 @@
this.lblInfected = new System.Windows.Forms.Label();
this.btnStartOneForAll = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.lblSimulationName = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pbxTerrain)).BeginInit();
this.SuspendLayout();
//
@@ -66,7 +67,7 @@
//
// pbxTerrain
//
this.pbxTerrain.Location = new System.Drawing.Point(16, 15);
this.pbxTerrain.Location = new System.Drawing.Point(16, 59);
this.pbxTerrain.Margin = new System.Windows.Forms.Padding(4);
this.pbxTerrain.Name = "pbxTerrain";
this.pbxTerrain.Size = new System.Drawing.Size(1067, 985);
@@ -81,7 +82,7 @@
this.label4.Location = new System.Drawing.Point(1091, 108);
this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(55, 17);
this.label4.Size = new System.Drawing.Size(53, 16);
this.label4.TabIndex = 6;
this.label4.Text = "Frames";
//
@@ -96,7 +97,7 @@
this.label1.Location = new System.Drawing.Point(1091, 15);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(103, 17);
this.label1.Size = new System.Drawing.Size(100, 16);
this.label1.TabIndex = 2;
this.label1.Text = "Memory Usage";
//
@@ -106,7 +107,7 @@
this.lblMemory.Location = new System.Drawing.Point(1091, 31);
this.lblMemory.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblMemory.Name = "lblMemory";
this.lblMemory.Size = new System.Drawing.Size(36, 17);
this.lblMemory.Size = new System.Drawing.Size(35, 16);
this.lblMemory.TabIndex = 3;
this.lblMemory.Text = "NaN";
//
@@ -116,7 +117,7 @@
this.label3.Location = new System.Drawing.Point(1091, 59);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(110, 17);
this.label3.Size = new System.Drawing.Size(106, 16);
this.label3.TabIndex = 4;
this.label3.Text = "Drawed Elemets";
//
@@ -126,7 +127,7 @@
this.lblelementsCounter.Location = new System.Drawing.Point(1091, 75);
this.lblelementsCounter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblelementsCounter.Name = "lblelementsCounter";
this.lblelementsCounter.Size = new System.Drawing.Size(36, 17);
this.lblelementsCounter.Size = new System.Drawing.Size(35, 16);
this.lblelementsCounter.TabIndex = 5;
this.lblelementsCounter.Text = "NaN";
//
@@ -136,7 +137,7 @@
this.lblFrameCount.Location = new System.Drawing.Point(1091, 124);
this.lblFrameCount.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblFrameCount.Name = "lblFrameCount";
this.lblFrameCount.Size = new System.Drawing.Size(36, 17);
this.lblFrameCount.Size = new System.Drawing.Size(35, 16);
this.lblFrameCount.TabIndex = 7;
this.lblFrameCount.Text = "NaN";
//
@@ -146,7 +147,7 @@
this.label5.Location = new System.Drawing.Point(1091, 151);
this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(115, 17);
this.label5.Size = new System.Drawing.Size(107, 16);
this.label5.TabIndex = 8;
this.label5.Text = "Total Time (ms) :";
//
@@ -156,7 +157,7 @@
this.lblTotalTime.Location = new System.Drawing.Point(1091, 167);
this.lblTotalTime.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblTotalTime.Name = "lblTotalTime";
this.lblTotalTime.Size = new System.Drawing.Size(36, 17);
this.lblTotalTime.Size = new System.Drawing.Size(35, 16);
this.lblTotalTime.TabIndex = 9;
this.lblTotalTime.Text = "NaN";
//
@@ -166,7 +167,7 @@
this.lbl6.Location = new System.Drawing.Point(1091, 326);
this.lbl6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lbl6.Name = "lbl6";
this.lbl6.Size = new System.Drawing.Size(57, 17);
this.lbl6.Size = new System.Drawing.Size(54, 16);
this.lbl6.TabIndex = 10;
this.lbl6.Text = "Deads :";
//
@@ -176,7 +177,7 @@
this.lblDeaths.Location = new System.Drawing.Point(1091, 342);
this.lblDeaths.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblDeaths.Name = "lblDeaths";
this.lblDeaths.Size = new System.Drawing.Size(36, 17);
this.lblDeaths.Size = new System.Drawing.Size(35, 16);
this.lblDeaths.TabIndex = 11;
this.lblDeaths.Text = "NaN";
//
@@ -186,7 +187,7 @@
this.lbl5.Location = new System.Drawing.Point(1091, 282);
this.lbl5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lbl5.Name = "lbl5";
this.lbl5.Size = new System.Drawing.Size(51, 17);
this.lbl5.Size = new System.Drawing.Size(47, 16);
this.lbl5.TabIndex = 12;
this.lbl5.Text = "Sains :";
//
@@ -196,7 +197,7 @@
this.lblSain.Location = new System.Drawing.Point(1091, 298);
this.lblSain.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblSain.Name = "lblSain";
this.lblSain.Size = new System.Drawing.Size(36, 17);
this.lblSain.Size = new System.Drawing.Size(35, 16);
this.lblSain.TabIndex = 13;
this.lblSain.Text = "NaN";
//
@@ -206,7 +207,7 @@
this.lbl4.Location = new System.Drawing.Point(1091, 239);
this.lbl4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lbl4.Name = "lbl4";
this.lbl4.Size = new System.Drawing.Size(72, 17);
this.lbl4.Size = new System.Drawing.Size(67, 16);
this.lbl4.TabIndex = 14;
this.lbl4.Text = "Immunes :";
//
@@ -216,7 +217,7 @@
this.lblImmunes.Location = new System.Drawing.Point(1091, 255);
this.lblImmunes.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblImmunes.Name = "lblImmunes";
this.lblImmunes.Size = new System.Drawing.Size(36, 17);
this.lblImmunes.Size = new System.Drawing.Size(35, 16);
this.lblImmunes.TabIndex = 15;
this.lblImmunes.Text = "NaN";
//
@@ -226,7 +227,7 @@
this.label12.Location = new System.Drawing.Point(1091, 196);
this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(73, 17);
this.label12.Size = new System.Drawing.Size(67, 16);
this.label12.TabIndex = 16;
this.label12.Text = "Infecteds :";
//
@@ -236,7 +237,7 @@
this.lblInfected.Location = new System.Drawing.Point(1091, 212);
this.lblInfected.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lblInfected.Name = "lblInfected";
this.lblInfected.Size = new System.Drawing.Size(36, 17);
this.lblInfected.Size = new System.Drawing.Size(35, 16);
this.lblInfected.TabIndex = 17;
this.lblInfected.Text = "NaN";
//
@@ -262,11 +263,22 @@
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click_1);
//
// lblSimulationName
//
this.lblSimulationName.AutoSize = true;
this.lblSimulationName.Font = new System.Drawing.Font("Verdana", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblSimulationName.Location = new System.Drawing.Point(12, 13);
this.lblSimulationName.Name = "lblSimulationName";
this.lblSimulationName.Size = new System.Drawing.Size(261, 34);
this.lblSimulationName.TabIndex = 20;
this.lblSimulationName.Text = "Simulation Name";
//
// SimulationVue
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1239, 1002);
this.ClientSize = new System.Drawing.Size(1239, 1052);
this.Controls.Add(this.lblSimulationName);
this.Controls.Add(this.button1);
this.Controls.Add(this.btnStartOneForAll);
this.Controls.Add(this.lblInfected);
@@ -289,7 +301,9 @@
this.Controls.Add(this.btnStartNormal);
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "SimulationVue";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Simulation";
this.Load += new System.EventHandler(this.SimulationVue_Load);
this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint);
((System.ComponentModel.ISupportInitialize)(this.pbxTerrain)).EndInit();
this.ResumeLayout(false);
@@ -320,6 +334,7 @@
private System.Windows.Forms.Label lblInfected;
private System.Windows.Forms.Button btnStartOneForAll;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label lblSimulationName;
}
}