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

📄 answer.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 Myschool
{
    public partial class Answer : Form
    {
        public Answer()
        {
            InitializeComponent();
        }

        private void Answer_Load(object sender, EventArgs e)
        {
            Bijiao();
            
            
        }

        private void Bijiao()
        {
            int score = EquelsAnswer.EquAnswer();

            if (score == 0)
            {
                picface.Image = imageLists.Images[0];
                this.lbltishi.Text = "该好好复习了!";
                this.lblscore.Text = score + "分";
                this.lblgetscore.Width = 0;
            } if (score < 60 && score > 0)
            {
                picface.Image = imageLists.Images[1];
                this.lbltishi.Text = "该好好复习了!";
                this.lblscore.Text = score + "分";
                this.lblgetscore.Width = 125;
            } if (score > 70)
            {
                picface.Image = imageLists.Images[2];
                this.lbltishi.Text = "学习不错,还得继续努力!";
                this.lblscore.Text = score + "分";
                this.lblgetscore.Width = 180;
            } if (score >= 100)
            {
                picface.Image = imageLists.Images[3];
                this.lbltishi.Text = "学习很努力哦,成绩不错!";
                this.lblscore.Text = score + "分";
                this.lblgetscore.Width = 250;
            }
        }

  

    }
}

⌨️ 快捷键说明

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