Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
吞了直接跳转ID时的异常
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiichiamane committed Nov 6, 2019
1 parent a19df47 commit 045169b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion PixivFSUWP/SearchPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,14 @@ private async void btnSauceNAO_Click(object sender, RoutedEventArgs e)
}
private void GoPixivID_QuerySubmitted(AutoSuggestBox sender, AutoSuggestBoxQuerySubmittedEventArgs args)
{
Frame.Navigate(typeof(IllustDetailPage), Convert.ToInt32(asbGTPID.Text));
try
{
Frame.Navigate(typeof(IllustDetailPage), Convert.ToInt32(asbGTPID.Text));
}
catch
{
//吞了异常。一般是由于输入的数字过大,超过了Int32的限制导致
}
}

private void style_TextBox_TextChanging(TextBox sender, TextBoxTextChangingEventArgs args)
Expand Down

0 comments on commit 045169b

Please sign in to comment.