📄 mainform.cs
字号:
this.label1.TabIndex = 10;
this.label1.Text = "Total Calls";
//
// txtTotalConnections
//
this.txtTotalConnections.Location = new System.Drawing.Point(144, 88);
this.txtTotalConnections.MaxLength = 6;
this.txtTotalConnections.Name = "txtTotalConnections";
this.txtTotalConnections.Size = new System.Drawing.Size(48, 20);
this.txtTotalConnections.TabIndex = 9;
this.txtTotalConnections.Text = "100";
//
// lblTotalCalls
//
this.lblTotalCalls.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.lblTotalCalls.Location = new System.Drawing.Point(112, 584);
this.lblTotalCalls.Name = "lblTotalCalls";
this.lblTotalCalls.Size = new System.Drawing.Size(80, 24);
this.lblTotalCalls.TabIndex = 8;
//
// lblAverage
//
this.lblAverage.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.lblAverage.Location = new System.Drawing.Point(112, 552);
this.lblAverage.Name = "lblAverage";
this.lblAverage.Size = new System.Drawing.Size(120, 24);
this.lblAverage.TabIndex = 7;
//
// cmbSpeed
//
this.cmbSpeed.Items.AddRange(new object[] {
"x 1",
"x 5",
"x 10",
"x 50",
"x 100",
"x 1000"});
this.cmbSpeed.Location = new System.Drawing.Point(144, 56);
this.cmbSpeed.Name = "cmbSpeed";
this.cmbSpeed.Size = new System.Drawing.Size(80, 21);
this.cmbSpeed.TabIndex = 5;
//
// cmbAlgorithm
//
this.cmbAlgorithm.Items.AddRange(new object[] {
"On",
"Off"});
this.cmbAlgorithm.Location = new System.Drawing.Point(144, 24);
this.cmbAlgorithm.Name = "cmbAlgorithm";
this.cmbAlgorithm.Size = new System.Drawing.Size(80, 21);
this.cmbAlgorithm.TabIndex = 4;
//
// btnStart
//
this.btnStart.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.btnStart.Location = new System.Drawing.Point(32, 648);
this.btnStart.Name = "btnStart";
this.btnStart.TabIndex = 2;
this.btnStart.Text = "Start";
this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
//
// pnlGraph
//
this.pnlGraph.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.pnlGraph.BackColor = System.Drawing.Color.White;
this.pnlGraph.Location = new System.Drawing.Point(8, 8);
this.pnlGraph.Name = "pnlGraph";
this.pnlGraph.Size = new System.Drawing.Size(520, 688);
this.pnlGraph.TabIndex = 1;
//
// tabPage2
//
this.tabPage2.BackColor = System.Drawing.Color.White;
this.tabPage2.Controls.Add(this.pictureBox2);
this.tabPage2.Controls.Add(this.groupBox2);
this.tabPage2.Controls.Add(this.TheChart);
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(784, 702);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Graphing";
//
// pictureBox2
//
this.pictureBox2.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.pictureBox2.BackColor = System.Drawing.Color.White;
this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
this.pictureBox2.Location = new System.Drawing.Point(8, 248);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(24, 144);
this.pictureBox2.TabIndex = 3;
this.pictureBox2.TabStop = false;
//
// groupBox2
//
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox2.Controls.Add(this.button1);
this.groupBox2.Controls.Add(this.btnGenerate);
this.groupBox2.Location = new System.Drawing.Point(664, 8);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(112, 688);
this.groupBox2.TabIndex = 1;
this.groupBox2.TabStop = false;
//
// button1
//
this.button1.Location = new System.Drawing.Point(8, 56);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(96, 32);
this.button1.TabIndex = 2;
//
// btnGenerate
//
this.btnGenerate.Location = new System.Drawing.Point(8, 16);
this.btnGenerate.Name = "btnGenerate";
this.btnGenerate.Size = new System.Drawing.Size(96, 32);
this.btnGenerate.TabIndex = 0;
this.btnGenerate.Text = "Average Hops";
this.btnGenerate.Click += new System.EventHandler(this.btnGenerate_Click);
//
// TheChart
//
this.TheChart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TheChart.Application = "";
this.TheChart.ApplicationDNC = "";
this.TheChart.Background.Color = System.Drawing.Color.White;
element1.LegendEntry = legendEntry1;
element1.XAxisTick = null;
element1.YAxisTick = null;
chartArea1.DefaultElement = element1;
legendBox1.CornerBottomRight = dotnetCHARTING.WinForms.BoxCorner.Cut;
legendBox1.DefaultEntry = legendEntry2;
legendEntry3.Name = "Name";
legendEntry3.SortOrder = -1;
legendEntry3.Value = "Value";
legendEntry3.Visible = false;
legendBox1.HeaderEntry = legendEntry3;
legendBox1.Padding = 4;
legendBox1.Visible = true;
chartArea1.LegendBox = legendBox1;
chartArea1.StartDateOfYear = new System.DateTime(((long)(0)));
this.TheChart.ChartArea = chartArea1;
this.TheChart.Controls.Add(this.pictureBox1);
this.TheChart.Controls.Add(this.panel2);
this.TheChart.DataGrid = null;
this.TheChart.DefaultCultureName = "";
element2.LegendEntry = legendEntry4;
element2.XAxisTick = null;
element2.YAxisTick = null;
this.TheChart.DefaultElement = element2;
this.TheChart.Location = new System.Drawing.Point(32, 8);
this.TheChart.Name = "TheChart";
this.TheChart.NoDataLabel.Text = "No Data";
this.TheChart.Palette = new System.Drawing.Color[] {
System.Drawing.Color.FromArgb(((System.Byte)(156)), ((System.Byte)(154)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(156)), ((System.Byte)(48)), ((System.Byte)(99))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(206))),
System.Drawing.Color.FromArgb(((System.Byte)(206)), ((System.Byte)(255)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(99)), ((System.Byte)(0)), ((System.Byte)(99))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(130)), ((System.Byte)(132))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(101)), ((System.Byte)(206))),
System.Drawing.Color.FromArgb(((System.Byte)(206)), ((System.Byte)(207)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(132))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(255)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(132)), ((System.Byte)(0)), ((System.Byte)(132))),
System.Drawing.Color.FromArgb(((System.Byte)(132)), ((System.Byte)(0)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(130)), ((System.Byte)(132))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(207)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(206)), ((System.Byte)(255)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(206)), ((System.Byte)(255)), ((System.Byte)(206))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(156))),
System.Drawing.Color.FromArgb(((System.Byte)(156)), ((System.Byte)(207)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(154)), ((System.Byte)(206))),
System.Drawing.Color.FromArgb(((System.Byte)(206)), ((System.Byte)(154)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(207)), ((System.Byte)(156))),
System.Drawing.Color.FromArgb(((System.Byte)(49)), ((System.Byte)(101)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(49)), ((System.Byte)(207)), ((System.Byte)(206))),
System.Drawing.Color.FromArgb(((System.Byte)(156)), ((System.Byte)(207)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(207)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(154)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(101)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(99)), ((System.Byte)(101)), ((System.Byte)(156))),
System.Drawing.Color.FromArgb(((System.Byte)(148)), ((System.Byte)(150)), ((System.Byte)(148))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(48)), ((System.Byte)(99))),
System.Drawing.Color.FromArgb(((System.Byte)(49)), ((System.Byte)(154)), ((System.Byte)(99))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(48)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(49)), ((System.Byte)(48)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(156)), ((System.Byte)(48)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(156)), ((System.Byte)(48)), ((System.Byte)(99))),
System.Drawing.Color.FromArgb(((System.Byte)(49)), ((System.Byte)(48)), ((System.Byte)(156))),
System.Drawing.Color.FromArgb(((System.Byte)(49)), ((System.Byte)(48)), ((System.Byte)(49))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(255)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(255)), ((System.Byte)(255))),
System.Drawing.Color.FromArgb(((System.Byte)(132)), ((System.Byte)(0)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(130)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(132))),
System.Drawing.Color.FromArgb(((System.Byte)(132)), ((System.Byte)(130)), ((System.Byte)(0))),
System.Drawing.Color.FromArgb(((System.Byte)(132)), ((System.Byte)(0)), ((System.Byte)(132))),
System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(130)), ((System.Byte)(132))),
System.Drawing.Color.FromArgb(((System.Byte)(198)), ((System.Byte)(195)), ((System.Byte)(198))),
System.Drawing.Color.FromArgb(((System.Byte)(132)), ((System.Byte)(130)), ((System.Byte)(132)))};
this.TheChart.ShadingEffectMode = dotnetCHARTING.WinForms.ShadingEffectMode.Three;
this.TheChart.ShowDateInTitle = false;
this.TheChart.Size = new System.Drawing.Size(624, 688);
this.TheChart.SmartPaletteAutoSync = false;
this.TheChart.StartDateOfYear = new System.DateTime(((long)(0)));
this.TheChart.TabIndex = 0;
this.TheChart.TempDirectory = "C:\\DOCUME~1\\Lawrence\\LOCALS~1\\Temp\\";
this.TheChart.TitleBox.Position = dotnetCHARTING.WinForms.TitleBoxPosition.Left;
this.TheChart.TitleBox.Visible = true;
this.TheChart.ToolTipTemplate = "";
this.TheChart.Type = dotnetCHARTING.WinForms.ChartType.Scatter;
element3.LegendEntry = legendEntry5;
element3.XAxisTick = null;
element3.YAxisTick = null;
chartArea2.DefaultElement = element3;
chartArea2.LegendBox = null;
chartArea2.StartDateOfYear = new System.DateTime(((long)(0)));
this.TheChart.VolumeArea = chartArea2;
//
// pictureBox1
//
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.pictureBox1.BackColor = System.Drawing.Color.White;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(240, 660);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(144, 24);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// panel2
//
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.Location = new System.Drawing.Point(0, 672);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(624, 16);
this.panel2.TabIndex = 1;
//
// chbLoopRemoval
//
this.chbLoopRemoval.Checked = true;
this.chbLoopRemoval.CheckState = System.Windows.Forms.CheckState.Checked;
this.chbLoopRemoval.Location = new System.Drawing.Point(16, 248);
this.chbLoopRemoval.Name = "chbLoopRemoval";
this.chbLoopRemoval.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.chbLoopRemoval.Size = new System.Drawing.Size(144, 16);
this.chbLoopRemoval.TabIndex = 33;
this.chbLoopRemoval.Text = "Remove Loops";
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(808, 757);
this.Controls.Add(this.tabControl1);
this.Name = "Form1";
this.Text = "ANTNET Simulator";
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.tabPage2.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.TheChart)).EndInit();
this.TheChart.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -