Esempio n. 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            _tbi = (TaskbarIcon)FindResource("TrayIcon");

            _windowPlacement = WindowPlacement.Instance;
            _windowPlacement.RegisterHotkeys();

            base.OnStartup(e);
        }
Esempio n. 2
0
        protected override void OnExit(ExitEventArgs e)
        {
            _windowPlacement.Dispose();
            _windowPlacement = null;

            _tbi.Dispose();
            _tbi = null;

            base.OnExit(e);
        }