Beispiel #1
0
        protected virtual void OnTrayIconClick(object sender, ExtendedMouseClickArgs e)
        {
            MouseClickInformation clickInfo = e.ClickInformation;

            if (clickInfo.OnlyLeftMouseButtonPressed)
            {
                WindowWorks.ShowWindow();
            }
        }
Beispiel #2
0
        protected virtual void OnContextMenuExitClick(object sender, ExtendedMouseClickArgs e)
        {
            MouseClickInformation clickInfo = e.ClickInformation;

            if (clickInfo.OnlyLeftMouseButtonPressed)
            {
                WindowWorks.CloseMainWindowToShutdown();

                // LifeManager.ShutdownApplication(KnownShutdownCodes.UserExit);
            }
        }