/// <summary>
        /// Registers a GuiComponent with the service
        /// </summary>
        /// <param name="component">The new GuiComponent</param>
        public static void Register(GuiComponent component)
        {
            Log.Info("Using Component {0} from {1}", component.Name, component.GetType().Assembly.FullName);

            _Components.Add(component);

            component.Init();
        }
Exemplo n.º 2
0
        //****************************************

        protected GuiProvider(GuiComponent component)
        {
            _Component = component;

            _PrimaryAssembly = this.GetType().Assembly;
        }
        /// <summary>
        /// Unregisters a GuiComponent from the service
        /// </summary>
        /// <param name="component">The GuiComponent to unregister</param>
        public static void Unregister(GuiComponent component)
        {
            component.Close();

            _Components.Remove(component);
        }