public void AddParticipantToWks(Workshop wks, Person p) { wks.AddParticipant(p); if (wks.GetParticipants().Count >= (wks.MaxParticipants * 0.9)) { if (ParticipantsLimitEvent != null) { ParticipantsLimitEvent(wks); } } AddAttendance(wks, p); }
public void AddParticipantToWks(Workshop wks, Person p) { wks.AddParticipant(p); if (wks.GetParticipants().Count >= (wks.MaxParticipants * 0.9)) { if (ParticipantsLimitEvent != null) { ParticipantsLimitEvent(wks); } } AddAttendance(wks, p); }