Added undo function

This commit is contained in:
Brychan Dempsey 2021-11-27 12:11:55 +13:00
parent 9f06c2d20f
commit 15d938d930

View File

@ -23,6 +23,10 @@ namespace GPA_Calculator
{ {
GradesList = new List<Grade>(); GradesList = new List<Grade>();
} }
else if (inputGrade == "undo" && GradesList.Count > 0)
{
GradesList.RemoveAt(GradesList.Count - 1);
}
} }
} }