public string SetStudent(Studente Stud, bool F) { if (Sez.Length == 3) { return("no"); } else { if ((Stud.AnnoDiNascita.Year == controllo.Year) || (F == true)) { Sez[Sez.Length] = Stud; return("ok"); } else { return("no data"); } } }
public string SetStudent(Studente Stud, bool F ) { if (Sez.Length == 3) { return "no"; } else { if ((Stud.AnnoDiNascita.Year == controllo.Year) || (F == true)) { Sez[Sez.Length] = Stud; return "ok"; } else { return "no data"; } } }