private void _cSubmitTracksButton_Click(object sender, EventArgs e) { if (ConfigurationManager.AppSettings["LastFM_Username"] == "" || ConfigurationManager.AppSettings["LastFM_Password"] == "") { MessageBox.Show("Please set your username and password in the settings menu.", "ZenseMe"); Forms.Settings SettingsForm = new Forms.Settings(this); SettingsForm.Show(); return; } if (main_SubmitContentView.CheckedItems.Count > 0) { ConfirmScrobble ConfirmScrobble = new ConfirmScrobble(this); PlayedTrackManager PlayedTrackManager = new PlayedTrackManager(); List <EntryObject> PlayedTracks = PlayedTrackManager.GenerateScrobbleTimes(main_SubmitContentView.CheckedItems, main_SubmitDate.Value); ConfirmScrobble.Show(); ConfirmScrobble.DataBind(PlayedTracks); } else { MessageBox.Show("You need to select a track to scrobble first.", "ZenseMe"); return; } }
private void ll_profile_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { string setProfileName = ConfigurationManager.AppSettings["LastFM_Username"]; if (ConfigurationManager.AppSettings["LastFM_Username"] == "" || ConfigurationManager.AppSettings["LastFM_Password"] == "") { MessageBox.Show("Please set your username and password in the settings menu.", "ZenseMe"); Forms.Settings SettingsForm = new Forms.Settings(this); SettingsForm.Show(); return; } System.Diagnostics.Process.Start("http://last.fm/user/" + setProfileName); }
private void settingsToolStripMenuItem_Click(object sender, EventArgs e) { Forms.Settings settings = new Forms.Settings(); settings.Show(); }
private void ll_settings_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Forms.Settings SettingsForm = new Forms.Settings(this); SettingsForm.Show(); }