Skip to content

Commit

Permalink
Correct answer fix for MainForm
Browse files Browse the repository at this point in the history
  • Loading branch information
NecRaul committed Apr 15, 2023
1 parent 8bd60bd commit c044d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ExamMainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private void ChangeAnsweredQuestionColor(DevExpress.XtraEditors.SimpleButton cur
if (radioGroup.SelectedIndex != -1)
{
questions[questionNumber].IsAnswered = true;
userAnswers[questionNumber] = radioGroup.Properties.Items[radioGroup.SelectedIndex].Description;
userAnswers[questionNumber] = radioGroup.Properties.Items[radioGroup.SelectedIndex].Description.Substring(1);
userRadioGroupIndices[questionNumber] = radioGroup.SelectedIndex;
if (!examFinished)
currentButton.Appearance.BackColor = System.Drawing.Color.Yellow;
Expand Down
2 changes: 1 addition & 1 deletion ExamProj.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DevExpress.Win.Design" Version="22.2.4" />
<PackageReference Include="DevExpress.Win.Design" Version="22.1.5" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.3">
Expand Down

0 comments on commit c044d4b

Please sign in to comment.