/// <summary> /// Initializes a new instance of the <see cref="LearningModuleTreeViewItem"/> class. /// </summary> /// <param name="learningModule">The learning module.</param> /// <remarks>Documented by Dev08, 2009-07-15</remarks> public LearningModuleTreeViewItem(IDictionary learningModule) : base() { context = SynchronizationContext.Current; if (context == null) { context = new SynchronizationContext(); } this.learningModule = learningModule; hasCustomSettings = learningModule.AllowedSettings != null && !SettingsManagerBusinessLogic.IsEmptySetting(learningModule.AllowedSettings) ? true : false; }
public CardTreeViewItem(ICard card, ChapterTreeViewItem parent) : base(parent) { this.card = card; //Cache question = BusinessLogic.HtmlHelper.HtmlStripTags(card.Question.ToString(), false, true); answer = BusinessLogic.HtmlHelper.HtmlStripTags(card.Answer.ToString(), false, true); questionExample = BusinessLogic.HtmlHelper.HtmlStripTags(card.QuestionExample.ToString(), false, true); answerExample = BusinessLogic.HtmlHelper.HtmlStripTags(card.AnswerExample.ToString(), false, true); id = card.Id; hasCustomSettings = card.Settings != null && !SettingsManagerBusinessLogic.IsEmptySetting(card.Settings) ? true : false; }
/// <summary> /// Initializes a new instance of the <see cref="ChapterTreeViewItem"/> class. /// </summary> /// <param name="chapter">The chapter.</param> /// <remarks>Documented by Dev08, 2009-07-15</remarks> public ChapterTreeViewItem(IChapter chapter, LearningModuleTreeViewItem parent) : base(parent) { this.chapter = chapter; hasCustomSettings = chapter.Settings != null && !SettingsManagerBusinessLogic.IsEmptySetting(chapter.Settings) ? true : false; }