Exemple #1
0
        public void AddGrade(float grade)
        {
            if (AddingGrade != null)
            {
                AddGradeEventArgs args = new AddGradeEventArgs();
                args.Grade = grade;
                AddingGrade(this, args);
            }

            if (grade >= 0 && grade <= 100)
            {
                _grades.Add(grade);
            }
        }
Exemple #2
0
 private static void OnAddGrade(object sender, AddGradeEventArgs args)
 {
     Console.WriteLine("Adding new Grade {0}", args.Grade);
 }