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

📄 frmsearchstudent.cs

📁 大二做的课程设计。一个学生信息管理系统
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Students1
{
    public partial class frmSearchStudent : Form
    {
        private string byWay;
        private string information;
        public frmSearchStudent()
        {
            InitializeComponent();
        }
        public string ByWay
        {
            get
            {
                return byWay;
            }
            set
            {
                byWay = value;
            }
        }
        public string Information
        {
            get
            {
                return information;
            }
            set
            {
                information = value;
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            if (this.comboBox1.Text == "学生编号")
            {
                this.ByWay = "StudentId";
            }
            else
            {
                this.ByWay = "StudentName";
            }
            this.Information = this.textBox1.Text;
            this.Close();

        }

        private void frmSearchStudent_Load(object sender, EventArgs e)
        {

        }
    }
}

⌨️ 快捷键说明

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