Exemplo n.º 1
0
        protected override void DeleteThisExercise()
        {
            foreach (KeyValuePair <string, AbstractExercise> pair in NestedExercises_)
            {
                AbstractExercise.DeleteThis((AbstractExercise)pair.Value);
            }

            InvalidateThis();
        }
Exemplo n.º 2
0
        // delete an exercise in this album
        public bool DeleteExercise(string name)
        {
            TestValid();

            if (name != null && NestedExercises_.ContainsKey(name))
            {
                AbstractExercise ae = NestedExercises_[name];
                AbstractExercise.DeleteThis(ae);
                NestedExercises_.Remove(name);
                return(true);
            }

            return(false);
        }