相关疑难解决方法(0)

编程技巧测试员(问题)

我正在开发一个程序,它将根据代码完成第2版中的32个主题,告诉程序员在初级,中级或专家级别.我正在使用32个复选框和一个方法来判断哪些被点击.问题是当我检查check复选框属性是否等于true时,它会在复选框实际检查之前得到结果.这是我的所有源代码(到目前为止):

public partial class Main : Form
{
    private int baseScore = 0;

    public Main()
    {
        InitializeComponent();
    }

    private void buttonCalculateScore_Click(object sender, EventArgs e)
    {
        DetermineLevelOfProgrammer();
    }

    private void DetermineLevelOfProgrammer()
    {
        if ((baseScore >= 0) || (baseScore <= 14))
        {
            labelYourScore.Text += " " + baseScore.ToString();
            labelDescription.Text = "You are a beginning programmer, probably in your first year of computer \n"+
                                    "science in school or teaching yourself your first programming language. ";
        }

        // Do the other checks here!

    } …
Run Code Online (Sandbox Code Playgroud)

c# winforms

1
推荐指数
2
解决办法
491
查看次数

标签 统计

c# ×1

winforms ×1