void LfmServiceProxy_NetworkErrorOccured(object sender, LfmServiceProxy.RequestErrorEventArgs e) { var msg = "A network-related error occured:" + Environment.NewLine + e.Message + Environment.NewLine + "Press 'Cancel' to disable further notifications"; ShowErrorMessage("Error", msg); }
void LfmServiceProxy_LastfmErrorOccured(object sender, LfmServiceProxy.RequestErrorEventArgs e) { if (e.LastfmErrorCode == 6 && (e.Message.Contains("Artist not found") || e.Message.Contains("Track not found"))) { return; } var msg = e.Message + Environment.NewLine + "Press 'Cancel' to disable further notifications"; ShowErrorMessage("Last.fm error", msg); }
void LfmServiceProxy_ErrorOccured(object sender, LfmServiceProxy.ErrorEventArgs e) { HandleAuthError(e.Error.Message); }
void HandleAuthError(object sender, LfmServiceProxy.RequestErrorEventArgs e) { HandleAuthError(e.Message); }
void LfmServiceProxy_ErrorOccured(object sender, LfmServiceProxy.ErrorEventArgs e) { ShowErrorMessage("Error", e.Error.Message); }