Exemplo n.º 1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="SharedBasicLayer" /> class.
        /// </summary>
        /// <param name="content">The content.</param>
        /// <param name="uid">The uid of the Layer.</param>
        /// <param name="userName">Name of the user.</param>
        /// <param name="isTeacher">if set to <c>true</c> [is teacher].</param>
        public SharedBasicLayer(BasicContent content, int uid, string userName, bool isTeacher)
            : base(uid, userName, isTeacher)
        {
            // Nom of the exercise
            Name = content.Name;

            Layer = content.GetLayerByUid(uid) as BasicLayer;
        }
Exemplo n.º 2
0
 public GraphicalQuestionLayer(BasicContent content, string name, bool isRenameable = false,
     bool isHideable = true, bool isDeletable = false, bool isShareable = false, bool isInkable = true)
     : base(content, name, isRenameable, isHideable, isDeletable, isShareable, isInkable)
 {
 }
Exemplo n.º 3
0
 public QuizLayer(BasicContent content, string name, bool isRenameable = true, bool isHideable = true,
     bool isDeletable = true, bool isShareable = true, bool isInkable = true)
     : base(content, name, isRenameable, isHideable, isDeletable, isShareable, isInkable)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ParallelLayer" /> class.
 /// </summary>
 /// <param name="content">The content.</param>
 /// <param name="name">The name.</param>
 /// <param name="isRenameable">if set to <c>true</c> [is renameable].</param>
 /// <param name="isHideable">if set to <c>true</c> [is hideable].</param>
 /// <param name="isDeletable">if set to <c>true</c> [is deletable].</param>
 /// <param name="isShareable">if set to <c>true</c> [is shareable].</param>
 /// <param name="isInkable">if set to <c>true</c> [is inkable].</param>
 public BasicLayer(BasicContent content, string name, bool isRenameable = true, bool isHideable = true,
     bool isDeletable = true, bool isShareable = true, bool isInkable = true)
     : base(content, Guid.NewGuid().GetHashCode(), isRenameable, isHideable, isDeletable, isShareable, isInkable)
 {
     Name = name;
 }