Ejemplo n.º 1
0
 private void PlayerForm_SizeChanged(object sender, EventArgs e)
 {
     if (WindowState == FormWindowState.Minimized)
     {
         UiCommands.HideMixer();
     }
 }
Ejemplo n.º 2
0
        public void Exit(bool showPrompt)
        {
            string msg = "Are you sure you want to exit?";

            if (showPrompt)
            {
                if ((SmartVolManagerPackage.BgMusicManager.MusicState == SmartVolManagerPackage.BgMusicState.Play) || (SmartVolManagerPackage.BgMusicManager.AutoMuted == true))
                {
                    msg = msg + " " + "Your music will be stopped.";
                }

                MessageBoxEx msgBoxEx = new MessageBoxEx(msg, "Minimize to Tray");
                msgBoxEx.ShowDialog();
                switch (msgBoxEx.ButtonPressedIndex)
                {
                case 0:
                    if (_isStandAlone)
                    {
                        Application.Exit();
                    }
                    else
                    {
                        UiCommands.Exit();
                    }
                    break;

                case 1:
                    break;

                case 2:
                    UiCommands.HideMixer();
                    break;
                }
            }
            else
            {
                if (_isStandAlone)
                {
                    Application.Exit();
                }
                else
                {
                    UiCommands.Exit();
                }
            }
        }
Ejemplo n.º 3
0
 private void OnHideMixer(object sender, EventArgs e)
 {
     UiCommands.HideMixer();
     UpdateTrayMenu(_validOperation, _isBgMusicVisible, _isRunning, false);
 }