frmsearchstudent.cs

来自「大二做的课程设计。一个学生信息管理系统」· CS 代码 · 共 61 行

CS
61
字号
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 + =
减小字号Ctrl + -
显示快捷键?