示例#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);
        }
示例#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;
 }