internal override void excuteAction() { o.Delete(); DeleteAction deleteA; if (o is Smer) { Smer s = o as Smer; termini = DataManger.getTerminsBySmer(s); } else if (o is Predmet) { Predmet p = o as Predmet; termini = DataManger.getTerminsByPredmet(p); } foreach (Termin t in termini) { deleteA = new DeleteAction(t); deleteA.excuteAction(); } base.excuteAction(); }