frmsearchscore.cs

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

CS
63 行
字号
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 frmSearchScore : Form
    {
        private string byWay;
        private string information;
        public frmSearchScore()
        {
            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 = "ClassId";
            }
            if (this.comboBox1.Text == "学生编号")
            {
                this.ByWay = "StudentId";
            }
            else
            {
                this.ByWay = "CourseId";

            }
            this.Information=this.textBox1.Text;
            this.Close();
        }
    }
}

⌨️ 快捷键说明

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