/// <summary> /// Constructor for this object /// </summary> /// <param name="id">The globally unique identifier for this deck</param> /// <param name="disposition"></param> /// <param name="humanName"></param> public DeckModel(Guid id, DeckDisposition disposition, string humanName, TableOfContentsModel toc, Hashtable slides, ImageHashtable sc, Hashtable ctsl) { this.m_Id = id; this.m_Disposition = disposition; this.m_HumanName = humanName; this.m_DeckBackgroundColor = Color.White; this.Filename = ""; this.Group = Group.AllParticipant; if (this.Disposition == DeckDisposition.StudentSubmission || this.Disposition == DeckDisposition.QuickPoll) { this.m_Dirty = true; } else { this.m_Dirty = false; } if (toc == null) { this.m_TableOfContents = new TableOfContentsModel(); } else { this.m_TableOfContents = toc; } if (slides == null) { this.m_Slides = new Hashtable(); } else { this.m_Slides = slides; } if (sc == null) { this.m_SlideContent = new ImageHashtable(); } else { this.m_SlideContent = sc; } if (ctsl != null) { this.m_ContentToSlideLookup = ctsl; } }