protected virtual Task Show(ToolWindowConfiguration config, ToolWindow window)
        {
            var show = false;
            var main = global::FoxTunes.Windows.IsMainWindowCreated && global::FoxTunes.Windows.MainWindow.IsVisible;
            var mini = global::FoxTunes.Windows.IsMiniWindowCreated && global::FoxTunes.Windows.MiniWindow.IsVisible;

            if (config.ShowWithMainWindow && main)
            {
                show = true;
            }
            else if (config.ShowWithMiniWindow && mini)
            {
                show = true;
            }
            if (show)
            {
                return(global::FoxTunes.Windows.Invoke(window.Show));
            }
            else
            {
                return(global::FoxTunes.Windows.Invoke(window.Hide));
            }
        }
 public ToolWindowConfigurationEventArgs(ToolWindowConfiguration configuration, ToolWindow window)
 {
     this.Configuration = configuration;
     this.Window        = window;
 }