⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assesscontrol.cs

📁 基于BP算法的贝叶斯网络参数学习
💻 CS
字号:
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;

namespace bs
{
	/// <summary>
	/// AssessControl 的摘要说明。
	/// </summary>
	public class AssessControl : System.Windows.Forms.UserControl
	{
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Splitter splitter1;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		//private bs.Grid grid1;
		public static int numRows=8;
		public static int numColumns=2;
		public static string[] columnsNames=new string[]{"Yes","No"};
		private bs.Grid grid2=new bs.Grid(numRows,numColumns,columnsNames);
		//private bs.Grid grid2;
		/// <summary> 
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public AssessControl()
		{
			// 该调用是 Windows.Forms 窗体设计器所必需的。
			InitializeComponent();
			//MessageBox.Show(grid2.w
		/*	grid2.SetColumnNames(columnsNames);
			for(int i=1;i<=columnsNames.Length;i++)
			{
				grid2.SetColumnWidthAndIgnoreFont(i, 60);
			}
			for(int i=1;i<=grid2.numRows;i++)
			{
				grid2.SetFullRow(i, new string[]{"0.5","0.5"});
			}*/
				

			// TODO: 在 InitializeComponent 调用后添加任何初始化

		}

		/// <summary> 
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Component Designer generated code
		/// <summary> 
		/// 设计器支持所需的方法 - 不要使用代码编辑器 
		/// 修改此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.label2 = new System.Windows.Forms.Label();
			this.splitter1 = new System.Windows.Forms.Splitter();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.label1 = new System.Windows.Forms.Label();
			this.grid2=new bs.Grid(numRows,numColumns,columnsNames);
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {   this.grid2,
																					this.label2});
			this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.groupBox1.Location = new System.Drawing.Point(224, 0);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(224, 344);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			// 
			// label2
			// 
			this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			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, ((System.Byte)(134)));
			this.label2.Location = new System.Drawing.Point(3, 17);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(218, 23);
			this.label2.TabIndex = 0;
			this.label2.Text = "Node";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			//
			//grid2
			//
			this.grid2.Location = new System.Drawing.Point(3,40);
			this.grid2.Dock = System.Windows.Forms.DockStyle.Top;
			this.grid2.Name = "grid2";
		//this.grid2.Height=(this.grid2.NumRows)*14+18;
			// 
			// splitter1
			// 
			this.splitter1.Cursor = System.Windows.Forms.Cursors.SizeWE;
			this.splitter1.Location = new System.Drawing.Point(221, 0);
			this.splitter1.MinExtra = 0;
			this.splitter1.MinSize = 0;
			this.splitter1.Name = "splitter1";
			this.splitter1.Size = new System.Drawing.Size(3, 344);
			this.splitter1.TabIndex = 2;
			this.splitter1.TabStop = false;
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.AddRange(new System.Windows.Forms.Control[] {
																					this.label1});
			this.groupBox2.Dock = System.Windows.Forms.DockStyle.Left;
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(221, 344);
			this.groupBox2.TabIndex = 3;
			this.groupBox2.TabStop = false;
			// 
			// label1
			// 
			this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			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, ((System.Byte)(134)));
			this.label1.Location = new System.Drawing.Point(3, 17);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(215, 23);
			this.label1.TabIndex = 0;
			this.label1.Text = "Parent Node(s)";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// AssessControl
			// 
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.groupBox1,
																		  this.splitter1,
																		  this.groupBox2});
			this.Name = "AssessControl";
			this.Size = new System.Drawing.Size(448, 344);
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -