Esempio n. 1
0
 public virtual int Practice(Group group, Equipment equipment, ISubActivities subActivities)
 {
     successFactor = 0;
     Message?.Invoke("Practice start : ");
     successFactor += CheckEquipment(equipment);
     if (subActivities != null)
     {
         successFactor += 1;
         Factor?.Invoke(subActivities.Action() + $".Student success factor: {successFactor}");
     }
     Message?.Invoke("Students study");
     groupRating.SetGroupGrades(group, name);
     return(successFactor);
 }
Esempio n. 2
0
        public virtual int Practice(Group group, Equipment equipment, ISubActivities subActivities)
        {
            MessageEventArgs message = new MessageEventArgs();

            successFactor = 0;
            message.text  = "Practice start : ";
            Message?.Invoke(this, message);
            successFactor += CheckEquipment(equipment);
            if (subActivities != null)
            {
                SuccessFactorEventArgs factor = new SuccessFactorEventArgs();
                successFactor       += 1;
                factor.text          = subActivities.Action() + ".Student success factor: ";
                factor.successFactor = successFactor;
                Factor?.Invoke(this, factor);
            }
            message.text = "Students study";
            Message?.Invoke(this, message);
            groupRating.SetGroupGrades(group, name);
            return(successFactor);
        }