예제 #1
0
        public static StudyUnit LoadStudyUnitInGroup(List <StudyUnitVM> otherStudyUnits)
        {
            List <string> usingPathNames = StudyUnitVM.GetAllPathNames(otherStudyUnits);
            string        pathName       = QueryOpenPathNameUniq(STUDYUNIT_FILTER, usingPathNames);

            if (string.IsNullOrEmpty(pathName))
            {
                return(null);
            }
            return(Load <StudyUnit>(pathName));
        }
예제 #2
0
        public static bool SaveStudyUnit(StudyUnitVM studyUnit, bool queryPathName, List <StudyUnitVM> otherStudyUnits)
        {
            List <string> usingPathNames = StudyUnitVM.GetAllPathNames(otherStudyUnits);

            if (!QuerySavePathNamesUniq(studyUnit, STUDYUNIT_FILTER, queryPathName, usingPathNames))
            {
                return(false);
            }
            EDOSerializer.DoSave <StudyUnit>(studyUnit.StudyUnitModel);
            return(true);
        }