Exemple #1
0
        private static IManageContent AddContentManager(System.Type t)
        {
            IManageContent instance = (IManageContent)Activator.CreateInstance(t);

            ContentManagers._contentManagers.Add(t, instance);
            return(instance);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController"/> class
 /// </summary>
 /// <param name="manageContent">manage Manage Content</param>
 public HomeController(ManageContent manageContent)
 {
     this._manageContent = manageContent;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController"/> class.
 /// </summary>
 public HomeController()
 {
     this._manageContent = new ManageContent();
 }