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)); }
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)); }