nodeproperties.cs
来自「基于BP算法的贝叶斯网络参数学习」· CS 代码 · 共 555 行 · 第 1/2 页
CS
555 行
this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Location = new System.Drawing.Point(4, 21);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(320, 239);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Node";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.label9);
this.groupBox2.Controls.Add(this.textBox2);
this.groupBox2.Controls.Add(this.textBox1);
this.groupBox2.Controls.Add(this.label2);
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox2.Location = new System.Drawing.Point(105, 0);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(215, 239);
this.groupBox2.TabIndex = 2;
this.groupBox2.TabStop = false;
//
// label9
//
this.label9.AllowDrop = true;
this.label9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label9.Dock = System.Windows.Forms.DockStyle.Top;
this.label9.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.Location = new System.Drawing.Point(3, 84);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(209, 22);
this.label9.TabIndex = 3;
this.label9.Text = "Name";
//
// textBox2
//
this.textBox2.AllowDrop = true;
this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox2.Dock = System.Windows.Forms.DockStyle.Top;
this.textBox2.Location = new System.Drawing.Point(3, 62);
this.textBox2.Multiline = true;
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(209, 22);
this.textBox2.TabIndex = 2;
this.textBox2.Text = "textBox2";
//
// textBox1
//
this.textBox1.AllowDrop = true;
this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.textBox1.Location = new System.Drawing.Point(3, 40);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(209, 22);
this.textBox1.TabIndex = 1;
this.textBox1.Text = "textBox1";
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
// label2
//
this.label2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label2.Dock = System.Windows.Forms.DockStyle.Top;
this.label2.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(3, 17);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(209, 23);
this.label2.TabIndex = 0;
this.label2.Text = "Value";
//
// splitter1
//
this.splitter1.Location = new System.Drawing.Point(104, 0);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(1, 239);
this.splitter1.TabIndex = 1;
this.splitter1.TabStop = false;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Left;
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(104, 239);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
//
// label5
//
this.label5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label5.Dock = System.Windows.Forms.DockStyle.Top;
this.label5.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.Location = new System.Drawing.Point(3, 84);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(98, 22);
this.label5.TabIndex = 3;
this.label5.Text = "States";
//
// label4
//
this.label4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label4.Dock = System.Windows.Forms.DockStyle.Top;
this.label4.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.Location = new System.Drawing.Point(3, 62);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(98, 22);
this.label4.TabIndex = 2;
this.label4.Text = "Description";
//
// label3
//
this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label3.Dock = System.Windows.Forms.DockStyle.Top;
this.label3.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(3, 40);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(98, 22);
this.label3.TabIndex = 1;
this.label3.Text = "Name";
this.label3.Click += new System.EventHandler(this.label3_Click);
//
// label1
//
this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label1.Dock = System.Windows.Forms.DockStyle.Top;
this.label1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(3, 17);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(98, 23);
this.label1.TabIndex = 0;
this.label1.Text = "Attribute";
//
// tabPage2
//
this.tabPage2.Controls.Add(this.button2);
this.tabPage2.Controls.Add(this.button1);
this.tabPage2.Location = new System.Drawing.Point(4, 21);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(320, 239);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Font&Color";
this.tabPage2.Click += new System.EventHandler(this.tabPage2_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(144, 88);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(95, 23);
this.button2.TabIndex = 1;
this.button2.Text = "ChangeColor";
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button1
//
this.button1.Location = new System.Drawing.Point(40, 88);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(88, 23);
this.button1.TabIndex = 0;
this.button1.Text = "ChangeFont";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.ItemSize = new System.Drawing.Size(48, 17);
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(328, 264);
this.tabControl1.TabIndex = 0;
//
// button3
//
this.button3.DialogResult = System.Windows.Forms.DialogResult.OK;
this.button3.Location = new System.Drawing.Point(72, 280);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 23);
this.button3.TabIndex = 1;
this.button3.Text = "确定";
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button4
//
this.button4.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.button4.Location = new System.Drawing.Point(168, 280);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(75, 23);
this.button4.TabIndex = 2;
this.button4.Text = "取消";
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// NodeProperties
//
this.AllowDrop = true;
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(312, 301);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.tabControl1);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "NodeProperties";
this.Text = "NodeProperties";
this.Load += new System.EventHandler(this.NodeProperties_Load);
this.tabPage1.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.tabPage2.ResumeLayout(false);
this.tabControl1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private void textBox5_TextChanged(object sender, System.EventArgs e)
{
}
private void textBox1_TextChanged(object sender, System.EventArgs e)
{
//foreach(BNode node in myNodeArray)
//if(node.BackColor==Color.DarkSeaGreen)
//node.Name=this.textBox1.Text;
}
private void tabPage2_Click(object sender, System.EventArgs e)
{
}
private void button1_Click(object sender, System.EventArgs e)
{
fontDialog1.ShowDialog();
Font newFont = fontDialog1.Font;
font=newFont;
}
private void button3_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void button4_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void button2_Click(object sender, System.EventArgs e)
{
colorDialog1.ShowDialog();
color=colorDialog1.Color;
}
private void groupBox1_Enter(object sender, EventArgs e)
{
}
private void label3_Click(object sender, EventArgs e)
{
}
private void NodeProperties_Load(object sender, EventArgs e)
{
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?