private void OnPivotViewerCollectionLoadingFailed(object sender, CollectionErrorEventArgs e) { string caption = e.ErrorCode.ToString(); string message = string.Format("{0} while parsing {0}", e.Exception.Details(), x_PivotViewer.CollectionUri); MessageBox.Show(message, caption, MessageBoxButton.OK); //ErrorWindow errorWin = new ErrorWindow(caption, details); //errorWin.Show(); }
/// <summary> /// Basic error reporting when the collection fails to load /// </summary> private void SessionsPivot_CollectionLoadingFailed(object sender, CollectionErrorEventArgs args) { string errorMessage = args.ErrorCode.ToString(); string details = string.Format("Error parsing {0}", SessionsPivot.CollectionUri); ErrorMessage.Text = errorMessage + Environment.NewLine + details; ErrorMessage.Visibility = Visibility.Visible; }
/// <summary> /// Basic error reporting when the collection fails to load /// </summary> private void PivotViewer_CollectionLoadingFailed(object sender, CollectionErrorEventArgs args) { string errorMessage = args.ErrorCode.ToString(); string details = string.Format("Error parsing {0}", PivotViewer.CollectionUri); ErrorWindow errorWin = new ErrorWindow(errorMessage, details); errorWin.Show(); }
/// <summary> /// PivotViewer CollectionLoadingFailed event handler /// </summary> /// <param name="sender">sender object</param> /// <param name="e">Event data for CollectionLoadingFailed event</param> private void OnCollectionLoadingFailed(object sender, CollectionErrorEventArgs e) { MessageBox.Show(string.Format("An error occured while loading the collection. \nPlease try again."), "PivotViewer - Error", MessageBoxButton.OK); }