Ejemplo n.º 1
0
        /// <summary>
        /// Adds a script extension to this thread.
        /// </summary>
        /// <param name="extension"></param>
        public static void Add(ScriptExtension extension)
        {
            if (_extensions.Contains(extension))
            {
                return;
            }

            extension.RegisterEvent("keydown");

            _extensions.Add(extension);

            extension.OnThreadAttached();
        }
Ejemplo n.º 2
0
        internal static void Remove(ScriptExtension extension)
        {
            extension.OnThreadDetached();

            _extensions.Remove(extension);
        }