Public? Static electricity String? stun number;
Public? Static electricity String? StuName
Public? Static electricity String? Scoring computer;
Public? Static electricity String? Scoring language;
Public? Static electricity String? ScoreHighMath
Public? Static electricity String? ScorePeaceTime
Private? Invalid? Button 1_Click (object? Sender? EventArgs? e)
{
StuNumber? =? this . txtstunnumber . text;
StuName=? this . txtstuname . text;
ScoreComputer? =? this . txtscorecomputer . text;
ScoreLanguage=? this . txtscorelanguage . text;
ScoreHighMath? =? this . txtscorehighmath . text;
score peace =? this . txtscore peace . text;
Form2? My form 2? =? New? form 2();
My form 2. show();
}
In table 2
Private? Invalid? BtnOK_Click (object? Sender? EventArgs? e)
{
this . txtstunnumber . text? =? Form 1. stun number;
this.txtStuName.Text? =? Form 1. StuName
this.txtScoreComputer.Text? =? Form 1. Scoring computer;
this.txtScoreLanguage.Text? =? Form 1. Scoring language;
this.txtScoreHighMath.Text? =? Form 1. ScoreHighMath
this . txtscore peace . text? =? Form 1. ScorePeaceTime
Double? d? =? Conversion. ToInt32(txtScoreComputer。 Text)? *? 0.2? +? Conversion. ToInt32(txtScoreLanguage。 Text)? *? 0.2
+? Conversion. ToInt32(txtScoreHighMath。 Text)? *? 0.2? +? Conversion. toint 32(txtscore peace。 Text) * 0.4;
What if? (d? & gt? 85)
{
this.lblRank.Text? =? "one";
}
Or what? What if? (d? & gt? 70)
{
this.lblRank.Text? =? “B”;
}
other
{
this.lblRank.Text? =? “C”;
}
}
We need data verification here, so we won't verify it here.
This code means that static variables pass values, and that combobox is useless to me. I think you chose it. There are many courses with achievements. You can choose these courses through combobox, then enter your grades, or choose your student number. In short, there can be a collection in combobox to choose from or write. I am also a beginner. I hope I can understand! ! !