private static async void ErrorHandler(object sender, ApiErrorOccuredEventArgs e) { await new MessageDialog("An error ocurred: " + e.ErrorMessage).ShowAsync(); }
public void OnApiErrorOccured(ApiErrorOccuredEventArgs e) { var handler = ApiErrorOccured; if (handler != null) handler(this, e); }