Exemple #1
0
 // MusicBee is closing the plugin (plugin is being disabled by user or MusicBee is shutting down)
 public void Close(PluginCloseReason reason)
 {
     _timer.Stop();
     Control.FromHandle(_mbApiInterface.MB_GetWindowHandle()).Invoke(new Action(() =>
     {
         _frmLyrics?.Dispose();
         _frmLyrics = null;
     }));
 }
Exemple #2
0
        private void StartupForm()
        {
            _frmLyrics?.Dispose();
            var f = (Form)Control.FromHandle(_mbApiInterface.MB_GetWindowHandle());

            f.Invoke(new Action(() =>
            {
                _frmLyrics = new FrmLyrics(_settings);
                _frmLyrics.Show();
            }));
        }