コード例 #1
0
        /// <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();
        }
コード例 #2
0
        //****************************************

        protected GuiProvider(GuiComponent component)
        {
            _Component = component;

            _PrimaryAssembly = this.GetType().Assembly;
        }
コード例 #3
0
        /// <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);
        }