/// <summary>
 /// инициализировать кадры
 /// темы
 /// </summary>
 private void initSteps(ToolsFactory _tlFactory)
 {
     try
     {
         string pathTheme = System.IO.Path.Combine(item.rootDirectory.AsPath()
                                                   , item.pathDirectory.AsPath());
         steps = new ObservableCollection <ISubItemForXSLT>();
         ItemStepModel tmpStep = null;
         string        path    = pathTheme.AsPath();
         ItemStepForXSLT.ResetIdInStep();
         foreach (LearningStep ls in item.learningSteps)
         {
             tmpStep = new ItemStepModel(ls, path);
             tmpStep.InitTools(_tlFactory);
             steps.Add(new ItemStepForXSLT(tmpStep));
         }
     }
     catch (ArgumentNullException)
     {
         throw new Exception("Отсутствуют кадры темы: " + item.identifier);
     }
     catch
     {
         //throw new Exception("Невозможно создать коллекцию кадров темы: " + item.identifier);
     }
 }
示例#2
0
        /// <summary>
        /// класс темы для конвертации
        /// xslt
        /// </summary>
        /// <param name="_item">тема курса</param>
        public ItemStepForXSLT(ItemStepModel _item)
        {
            if (_item == null)
            {
                throw new ArgumentNullException();
            }

            item = _item;

            number++;

            strIdentifer = "step" + number;
            InitTools();
        }
        /// <summary>
        /// класс темы для конвертации
        /// xslt 
        /// </summary>
        /// <param name="_item">тема курса</param>
        public ItemStepForXSLT(ItemStepModel _item)
        {
            if (_item == null)
                throw new ArgumentNullException();

            item = _item;

            number++;

            strIdentifer = "step" + number;
            InitTools();
        }
 /// <summary>
 /// инициализировать кадры
 /// темы
 /// </summary>
 private void initSteps(ToolsFactory _tlFactory)
 {
     try
     {
         string pathTheme = System.IO.Path.Combine(item.rootDirectory.AsPath()
                                                 , item.pathDirectory.AsPath());
         steps = new ObservableCollection<ISubItemForXSLT>();
         ItemStepModel tmpStep = null;
         string path = pathTheme.AsPath();
         ItemStepForXSLT.ResetIdInStep();
         foreach (LearningStep ls in item.learningSteps)
         {
             tmpStep = new ItemStepModel(ls, path);
             tmpStep.InitTools(_tlFactory);
             steps.Add(new ItemStepForXSLT(tmpStep));
         }
     }
     catch (ArgumentNullException)
     {
         throw new Exception("Отсутствуют кадры темы: " + item.identifier);
     }
     catch
     {
         //throw new Exception("Невозможно создать коллекцию кадров темы: " + item.identifier);
     }
 }