FromPlanDesign() public static method

public static FromPlanDesign ( PlanDesign design ) : List
design GoodAI.School.Common.PlanDesign
return List
Exemplo n.º 1
0
        private void LoadCurriculum(string filePath)
        {
            string     xmlCurr;
            PlanDesign plan = CurriculumManager.LoadPlanDesign(filePath, out xmlCurr);

            if (plan == null)
            {
                return;
            }

            foreach (CurriculumNode curr in CurriculumNode.FromPlanDesign(plan))
            {
                m_model.Nodes.Add(curr);
            }

            Properties.School.Default.LastOpenedFile = filePath;
            Properties.School.Default.Save();
            m_savedRepresentation = xmlCurr;
            m_currentFile         = filePath;
        }