Example #1
0
        public void ReloadPreference(ICoreServicePreference pref)
        {
            IPoderosaAboutBoxFactory af = AboutBoxUtil.GetCurrentAboutBoxFactory();

            if (af != null)
            {
                this.Icon = af.ApplicationIcon;
            }
            _toolStripContainer.ReloadPreference(pref);
        }
Example #2
0
        public PoderosaForm()
        {
            _contextMenusToDispose = new List <ContextMenuStrip>();

            components = new System.ComponentModel.Container();
            _contextMenuDisposeTimer       = new Timer(components);
            _contextMenuDisposeTimer.Tick += new EventHandler(ContextMenuDisposeTimerTick);

            _messageBoxInternalDelegate = new MessageBoxInternalDelegate(this.MessageBoxInternal);

            IPoderosaAboutBoxFactory aboutBoxFactory = AboutBoxUtil.GetCurrentAboutBoxFactory();

            if (aboutBoxFactory != null)
            {
                this.Icon = aboutBoxFactory.ApplicationIcon;
            }

            //ショートカットキーは共通
            _commandKeyHandler = new KeyboardHandlerManager();
            _commandKeyHandler.AddLastHandler(new CommandShortcutKeyHandler(this));
        }