answer.cs

来自「一个简单的考生答题系统」· CS 代码 · 共 59 行

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