Ejemplo n.º 1
0
        public void AddVariation(string name)
        {
            if (SelectedGrade == null)
            {
                return;
            }
            if (SelectedGrade.Variations.FindAll(variation => variation.Name == name).Count == 0)
            {
                SelectedGrade.Variations.Add(new Variation(name));

                view.RefreshView();
                return;
            }
            view.InvalidNameChange();
        }