RadioDld.Main.Programme_Updated C# (CSharp) Method

Programme_Updated() private method

private Programme_Updated ( int progid ) : void
progid int
return void
        private void Programme_Updated(int progid)
        {
            if (this.IsDisposed)
            {
                return;
            }

            if (this.InvokeRequired)
            {
                this.Invoke((MethodInvoker)(() => { this.Programme_Updated(progid); }));
                return;
            }

            if (this.view.CurrentView == ViewState.View.ProgEpisodes)
            {
                if ((int)this.view.CurrentViewData == progid)
                {
                    if (this.ListEpisodes.SelectedItems.Count == 0)
                    {
                        // Update the displayed programme information
                        this.ShowProgrammeInfo(progid);
                    }
                    else
                    {
                        // Update the episode information (for subscription / favourite toolbar buttons etc)
                        this.ShowEpisodeInfo();
                    }
                }
            }
        }
Main