Ejemplo n.º 1
0
        /// <summary>
        /// Gets the specified card.
        /// </summary>
        /// <param name="card_id">The card id.</param>
        /// <returns></returns>
        /// <remarks>Documented by Dev03, 2007-09-04</remarks>
        /// <remarks>Documented by Dev03, 2009-01-13</remarks>
        public ICard Get(int card_id)
        {
            ICard card = new DbCard(card_id, parent.GetChildParentClass(this));

            if (!this.HasPermission(PermissionTypes.Visible))
            {
                throw new PermissionException();
            }
            return(card);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the specified card.
 /// </summary>
 /// <param name="card_id">The card id.</param>
 /// <returns></returns>
 /// <remarks>Documented by Dev03, 2007-09-04</remarks>
 /// <remarks>Documented by Dev03, 2009-01-13</remarks>
 public ICard Get(int card_id)
 {
     ICard card = new DbCard(card_id, parent.GetChildParentClass(this));
     if (!this.HasPermission(PermissionTypes.Visible))
         throw new PermissionException();
     return card;
 }