Example #1
0
 private void PluginsButton_Click(object sender, RoutedEventArgs e)
 {
     DoFocusChange();
     if (!PlWidget.IsVisible)
     {
         PlWidget.Show();
     }
     else
     {
         PlWidget.Hide();
     }
 }
Example #2
0
        private void Window_Closing(object sender, CancelEventArgs e)
        {
            if (InstanceManager.Instance.PlaylistEditorInstance != null)
            {
                if (!InstanceManager.Instance.PlaylistEditorInstance.ClosePlaylistQuery())
                {
                    e.Cancel = true;
                    return;
                }
                InstanceManager.Instance.PlaylistEditorInstance.CloseFinal();
                InstanceManager.Instance.SettingsWindowInstance.CloseFinal();
            }

            if (_volWidget != null)
            {
                _volWidget.Close();
            }

            if (_qlWidget != null)
            {
                _qlWidget.Close();
            }

            if (PlWidget != null)
            {
                PlWidget.Close();
            }

            PlaybackManagerInstance.Dispose();

            SettingsInstance["LastWindowLocation"].Value = new Point((int)Left, (int)Top);

            _controlNotifyIcon.Visible = false;

            if (InstanceManager.Instance.LoadedExtensions == null)
            {
                return;
            }
            foreach (var p in InstanceManager.Instance.LoadedExtensions)
            {
                p.Instance.Unload();
            }
        }