예제 #1
0
        private void link_ButtonPressed(QButton Button)
        {
            switch (this.View)
            {
            case AlbumDetailView.AlbumInfo:
            case AlbumDetailView.Lyrics:
                if (albumURL.Length > 0)
                {
                    Net.BrowseTo(albumURL);
                }
                else
                {
                    Net.BrowseTo(LastFM.GetLastFMAlbumURL(CurrentTrack));
                }
                break;

            case AlbumDetailView.ArtistInfo:
                if (artistURL.Length > 0)
                {
                    Net.BrowseTo(artistURL);
                }
                else
                {
                    Net.BrowseTo(LastFM.GetLastFMArtistURL(CurrentTrack));
                }
                break;
            }
        }
예제 #2
0
 private void gotoAccount()
 {
     if (txtUserName.Text.Length > 0)
     {
         Net.BrowseTo("http://www.last.fm/user/" + HttpUtility.UrlEncode(txtUserName.Text));
     }
 }
예제 #3
0
        private void lvwSubscriptions_ContextMenuHook(ContextMenuStrip ContextMenu, PodcastSubscription PS)
        {
            ToolStripMenuItem tsi = new ToolStripMenuItem("&Restore Deleted Episode Entries");

            tsi.Click += (s, ee) =>
            {
                List <PodcastEpisode> ppe = PS.Episodes.ToList();

                foreach (PodcastEpisode pe in ppe)
                {
                    if (pe.IsDeleted)
                    {
                        if (pe.Track == null)
                        {
                            pe.SetDownloadStatus(PodcastDownloadStatus.NotDownloaded);
                        }
                        else
                        {
                            pe.SetDownloadStatus(PodcastDownloadStatus.Unplayed);
                        }
                    }
                }
                if (lvwSubscriptions.SelectedItem == PS)
                {
                    populateEpisodes(PS);
                }
            };
            tsi.Enabled = PS.HasDeletedEpisodes;
            ContextMenu.Items.Add(tsi);

            tsi        = new ToolStripMenuItem("Check for New Episodes");
            tsi.Click += (s, ee) =>
            {
                checkForNewEpisodes(PS);
                //PS.UpdateEpisodeInfo();
                //if (lvwSubscriptions.SelectedItem == PS)
                //  populateEpisodes(PS);
            };
            ContextMenu.Items.Add(tsi);

            ContextMenu.Items.Add(new ToolStripSeparator());

            tsi        = new ToolStripMenuItem("Visit Podcast Web Site...");
            tsi.Click += (s, ee) =>
            {
                Net.BrowseTo(PS.ReferenceURL);
            };
            tsi.Enabled = PS.ReferenceURL.Length > 0;
            ContextMenu.Items.Add(tsi);
        }
예제 #4
0
 private void viewOnWeb()
 {
     Net.BrowseTo("http://twitter.com/" + txtUserName.Text);
 }
예제 #5
0
 private void mnuHelpOnlineHelp_Click(object sender, EventArgs e)
 {
     Net.BrowseTo(Lib.PRODUCT_URL + "/quuxplayerhelp.php");
 }
예제 #6
0
 private void mnuHelpOtherLanguages_Click(object sender, EventArgs e)
 {
     Net.BrowseTo(Lib.PRODUCT_URL + "/localization.php");
 }
예제 #7
0
 private void btnHelp_Click()
 {
     Net.BrowseTo(Lib.PRODUCT_URL + "/doc_auto_playlists.php");
 }
예제 #8
0
 private void help()
 {
     Net.BrowseTo(Lib.PRODUCT_URL + "/doc_organizer.php");
 }