summaryrefslogtreecommitdiffstats
path: root/samples/OAuthConsumerWpf/MainWindow.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'samples/OAuthConsumerWpf/MainWindow.xaml.cs')
-rw-r--r--samples/OAuthConsumerWpf/MainWindow.xaml.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/OAuthConsumerWpf/MainWindow.xaml.cs b/samples/OAuthConsumerWpf/MainWindow.xaml.cs
index 93d77ea..ee393c1 100644
--- a/samples/OAuthConsumerWpf/MainWindow.xaml.cs
+++ b/samples/OAuthConsumerWpf/MainWindow.xaml.cs
@@ -171,7 +171,7 @@
string requestToken;
Uri authorizeUrl = consumer.RequestUserAuthorization(null, null, out requestToken);
Process.Start(authorizeUrl.AbsoluteUri);
- MessageBox.Show("Click OK when you've authorized the app.");
+ MessageBox.Show(this, "Click OK when you've authorized the app.");
var authorizationResponse = consumer.ProcessUserAuthorization(requestToken);
accessToken = authorizationResponse.AccessToken;
} else {
@@ -195,7 +195,7 @@
resultsBox.Text = resourceResponse.GetResponseReader().ReadToEnd();
}
} catch (DotNetOpenAuth.Messaging.ProtocolException ex) {
- MessageBox.Show(ex.Message);
+ MessageBox.Show(this, ex.Message);
}
}
}