示例#1
0
        /// <summary>
        /// Bootstraps the framework code and launches the heaviest
        /// <see cref="IFrameworkMain" /> found in the base directory of the
        /// loader.
        /// </summary>
        public static void Run()
        {
            IoCFramework framework = new IoCFramework();

            framework.Load();
            framework.Create <IFrameworkMain>().Main();
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ControlManager" />
 /// class, or the <see cref="FrameworkControlManager" /> class if, and
 /// only if, the request interface is the framework interface
 /// (<see cref="IIoCFramework"/>).
 /// </summary>
 /// <returns>The new instance.</returns>
 /// <param name="framework">
 /// The framework that this class manages a control for.
 /// </param>
 /// <param name="iface">
 /// The interface type of the control this class is managing.
 /// </param>
 internal static ControlManager Create(IoCFramework framework, Type iface)
 {
     if (iface == typeof(IIoCFramework))
     {
         return(new FrameworkControlManager(framework));
     }
     else
     {
         return(new ControlManager(framework, iface));
     }
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ControlManager" />
 /// class.
 /// </summary>
 /// <param name="framework">
 /// The framework that this class manages a control for.
 /// </param>
 /// <param name="iface">
 /// The interface type of the control this class is managing.
 /// </param>
 protected ControlManager(IoCFramework framework, Type iface)
 {
     Framework       = framework;
     Implementations = new List <ControlImplementation>();
     Interface       = iface;
 }
 /// <summary>
 /// Initializes a new instance of the
 /// <see cref="FrameworkControlManager" /> class.
 /// </summary>
 /// <param name="framework">
 /// The framework that this class manages a control for.
 /// </param>
 internal FrameworkControlManager(IoCFramework framework) : base(framework, typeof(IIoCFramework))
 {
 }