示例#1
0
文件: Plugin.cs 项目: MrSm1th/lastfm
 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);
 }
示例#2
0
文件: Plugin.cs 项目: MrSm1th/lastfm
 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);
 }
示例#3
0
 void LfmServiceProxy_ErrorOccured(object sender, LfmServiceProxy.ErrorEventArgs e)
 {
     HandleAuthError(e.Error.Message);
 }
示例#4
0
 void HandleAuthError(object sender, LfmServiceProxy.RequestErrorEventArgs e)
 {
     HandleAuthError(e.Message);
 }
示例#5
0
文件: Plugin.cs 项目: MrSm1th/lastfm
 void LfmServiceProxy_ErrorOccured(object sender, LfmServiceProxy.ErrorEventArgs e)
 {
     ShowErrorMessage("Error", e.Error.Message);
 }