I use the addTurma method to place the objects in the groups list
public static List<turma> turmas = new List<turma>();
public static void addTurma(turma x)
{
turmas.Add(x);
}
turma x = new turma(nomeTurma.Text,(int)numericUpDown1.Value);
//Se nomeTurma.Text não exite na lista turmas
{
turma.addTurma(x);
}
I just want to add class-type objects that do not have the same name, ie verify that stringTurma.Text already exists in the / strong>