Exemple #1
0
        /// <summary>
        /// Copies the specified source.
        /// </summary>
        /// <param name="source">The source.</param>
        /// <param name="destination">The destination.</param>
        /// <param name="categoryID">The category ID.</param>
        public void Copy(KbContext source, KbContext destination, int categoryID)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }
            if (destination == null)
            {
                throw new ArgumentNullException("destination");
            }

            _source      = source;
            _destination = destination;
            CloneCategory(categoryID);
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CategoryTree"/> class.
 /// </summary>
 public CategoryTree(KbContext context)
 {
     _context = context;
     LoadData();
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ManagerBase&lt;T&gt;"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="factory">The factory.</param>
 protected ManagerBase(KbContext context, TFactory factory)
 {
     Context = context;
     Factory = factory;
 }