示例#1
0
 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");
         }
     }
 }
示例#2
0
        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";
                }

            }
        }