public void Delete(ChildEntity Child)
        {
            Node.RemoveChild(Child.Node);
            switch (Child.GetType().ToString())
            {
            case "ILR.LearningDeliveryFAM":
                this.LearningDeliveryFAMList.Remove((LearningDeliveryFAM)Child);
                break;

            case "ILR.ApprenticeshipTrailblazerFinancialDetails":
                this.ApprenticeshipTrailblazerFinancialDetailsList.Remove((ApprenticeshipTrailblazerFinancialDetails)Child);
                break;

            case "ILR.ProviderSpecDeliveryMonitoring":
                this.ProviderSpecDeliveryMonitoringList.Remove((ProviderSpecDeliveryMonitoring)Child);
                break;

            case "ILR.LearningDeliveryHE":
                this.LearningDeliveryHE = null;
                break;

            case "ILR.LearningDeliveryWorkPlacement":
                this.LearningDeliveryWorkPlacementList.Remove((LearningDeliveryWorkPlacement)Child);
                break;
            }
        }
Exemple #2
0
        public void Delete(ChildEntity Child)
        {
            ILRFile.DocumentElement.RemoveChild(Child.Node);
            switch (Child.GetType().ToString())
            {
            case "ILR.Learner":
                this.LearnerList.Remove((Learner)Child);
                break;

            case "ILR.LearnerDestinationandProgression":
                this.LearnerDestinationandProgressionList.Remove((LearnerDestinationandProgression)Child);
                break;
            }
        }