protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); // can eventually set these through DI if we want _windowStateManager = new NativeWindowStateManager(); _hotkeyRegistrar = new ManagedHotKeyRegistrar(); _optionsProvider = new RegistryOptionsManager(); registerHotKeys(); setupTrayIcon(); showBalloonTip(WindowHerder.Resources.Strings.StartupBalloonMessage, ToolTipIcon.Info, _optionsProvider.Options.ShowStartupMessage); }