protected virtual void OnStatusEvent(MetaDataEventArgs arg)
 {
     if (this.StatusEvent != null)
     {
         this.StatusEvent(this, arg);
     }
 }
 void lookupStatusEvent(object sender, MetaDataEventArgs e)
 {
     this.OnStatusEvent(e);
     if (e.MetaData.IsFinished) {
         MetaDataLookup lookup = (MetaDataLookup)sender;
         lookup.StatusEvent -= new EventHandler<MetaDataEventArgs>(lookupStatusEvent);
         this.CleanupOne(e.MetaData.Song);
     }
 }
 void lookupStatusEvent(object sender, MetaDataEventArgs e)
 {
     this.OnStatusEvent(e);
     if (e.MetaData.IsFinished)
     {
         MetaDataLookup lookup = (MetaDataLookup)sender;
         lookup.StatusEvent -= new EventHandler <MetaDataEventArgs>(lookupStatusEvent);
         this.CleanupOne(e.MetaData.Song);
     }
 }
        void metaDataFetchManager_StatusEvent(object sender, MetaDataEventArgs e)
        {
            if (this.IsDisposed)
            {
                return;
            }

            this.BeginInvoke(new MethodInvoker(delegate() {
                this.SetSongMetaData(e.MetaData);
                this.olvMetaData.RefreshObject(e.MetaData.Song);
                this.EnableControls();
                this.UpdateStatusText();
                if (this.olvMetaData.IsSelected(e.MetaData.Song))
                {
                    this.UpdateMetaDataDetails();
                }
            }));
        }
 protected virtual void OnStatusEvent(MetaDataEventArgs arg)
 {
     if (this.StatusEvent != null)
         this.StatusEvent(this, arg);
 }
        void metaDataFetchManager_StatusEvent(object sender, MetaDataEventArgs e)
        {
            if (this.IsDisposed)
                return;

            this.BeginInvoke(new MethodInvoker(delegate() {
                this.SetSongMetaData(e.MetaData);
                this.olvMetaData.RefreshObject(e.MetaData.Song);
                this.EnableControls();
                this.UpdateStatusText();
                if (this.olvMetaData.IsSelected(e.MetaData.Song))
                    this.UpdateMetaDataDetails();
            }));
        }