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

📄 selectform.cs

📁 基于SQL CE存储数据的学生信息管理系统
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace StudInfo
{
	/// <summary>
	/// SelectForm 的摘要说明。
	/// </summary>
	public class SelectForm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		public System.Windows.Forms.RadioButton radioButton1;
		public System.Windows.Forms.RadioButton radioButton2;
		public System.Windows.Forms.RadioButton radioButton3;
		private System.Windows.Forms.Label label2;
		public System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Button button2;
		public System.Windows.Forms.DomainUpDown domainUpDown1;
	
		public SelectForm()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

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

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.radioButton1 = new System.Windows.Forms.RadioButton();
			this.radioButton2 = new System.Windows.Forms.RadioButton();
			this.radioButton3 = new System.Windows.Forms.RadioButton();
			this.label2 = new System.Windows.Forms.Label();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.button1 = new System.Windows.Forms.Button();
			this.button2 = new System.Windows.Forms.Button();
			this.domainUpDown1 = new System.Windows.Forms.DomainUpDown();
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 13);
			this.label1.Size = new System.Drawing.Size(56, 16);
			this.label1.Text = "查询条件";
			// 
			// radioButton1
			// 
			this.radioButton1.Checked = true;
			this.radioButton1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold);
			this.radioButton1.Location = new System.Drawing.Point(16, 44);
			this.radioButton1.Size = new System.Drawing.Size(56, 24);
			this.radioButton1.Text = "等于";
			// 
			// radioButton2
			// 
			this.radioButton2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold);
			this.radioButton2.Location = new System.Drawing.Point(84, 44);
			this.radioButton2.Size = new System.Drawing.Size(56, 24);
			this.radioButton2.Text = "大于";
			// 
			// radioButton3
			// 
			this.radioButton3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold);
			this.radioButton3.Location = new System.Drawing.Point(152, 44);
			this.radioButton3.Size = new System.Drawing.Size(48, 24);
			this.radioButton3.Text = "小于";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(8, 81);
			this.label2.Size = new System.Drawing.Size(48, 24);
			this.label2.Text = "查询值";
			// 
			// textBox1
			// 
			this.textBox1.Location = new System.Drawing.Point(80, 74);
			this.textBox1.Size = new System.Drawing.Size(112, 21);
			this.textBox1.Text = "";
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(16, 120);
			this.button1.Size = new System.Drawing.Size(72, 24);
			this.button1.Text = "确定";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(112, 120);
			this.button2.Size = new System.Drawing.Size(72, 24);
			this.button2.Text = "取消";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// domainUpDown1
			// 
			this.domainUpDown1.Items.Add("学号");
			this.domainUpDown1.Items.Add("姓名");
			this.domainUpDown1.Items.Add("性别");
			this.domainUpDown1.Items.Add("年龄");
			this.domainUpDown1.Items.Add("系部");
			this.domainUpDown1.Location = new System.Drawing.Point(80, 10);
			this.domainUpDown1.Size = new System.Drawing.Size(120, 21);
			this.domainUpDown1.Text = "学号";
			// 
			// SelectForm
			// 
			this.ClientSize = new System.Drawing.Size(218, 159);
			this.Controls.Add(this.domainUpDown1);
			this.Controls.Add(this.button2);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.textBox1);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.radioButton3);
			this.Controls.Add(this.radioButton2);
			this.Controls.Add(this.radioButton1);
			this.Controls.Add(this.label1);
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Text = "查询";

		}
		#endregion

		private void button1_Click(object sender, System.EventArgs e)
		{
			//if (textBox1.Text.ToString()=="")
				//				MessageBox.Show("查询值不能为空!","错误",MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
				this.DialogResult = DialogResult.OK;
		}

		private void button2_Click(object sender, System.EventArgs e)
		{
			this.DialogResult = DialogResult.Cancel;
		}
	}
}

⌨️ 快捷键说明

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