diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-07-26 07:45:42 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-07-26 07:45:42 -0700 |
commit | 08d6900d3de1f68d77e1253913d66734b7b42a0c (patch) | |
tree | 6fa161e694de71bec8dcb02aaa3a2e53641284fb /samples/OAuthConsumerWpf | |
parent | cb8528f3bace8ffdc11c6b0c5d5a460697fa48c9 (diff) | |
download | DotNetOpenAuth-08d6900d3de1f68d77e1253913d66734b7b42a0c.zip DotNetOpenAuth-08d6900d3de1f68d77e1253913d66734b7b42a0c.tar.gz DotNetOpenAuth-08d6900d3de1f68d77e1253913d66734b7b42a0c.tar.bz2 |
StyleCop fixes
Diffstat (limited to 'samples/OAuthConsumerWpf')
-rw-r--r-- | samples/OAuthConsumerWpf/Authorize2.xaml.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/samples/OAuthConsumerWpf/Authorize2.xaml.cs b/samples/OAuthConsumerWpf/Authorize2.xaml.cs index 86d8d9e..d303145 100644 --- a/samples/OAuthConsumerWpf/Authorize2.xaml.cs +++ b/samples/OAuthConsumerWpf/Authorize2.xaml.cs @@ -13,8 +13,8 @@ using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; - using DotNetOpenAuth.OAuth2; using DotNetOpenAuth.Messaging; + using DotNetOpenAuth.OAuth2; /// <summary> /// Interaction logic for Authorize2.xaml @@ -36,6 +36,12 @@ public IAuthorizationState Authorization { get; set; } + private static bool SignificantlyEqual(Uri location1, Uri location2, UriComponents components) { + string value1 = location1.GetComponents(components, UriFormat.Unescaped); + string value2 = location2.GetComponents(components, UriFormat.Unescaped); + return string.Equals(value1, value2, StringComparison.Ordinal); + } + private void webBrowser_Navigating(object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e) { this.locationChanged(e.Url); } @@ -66,11 +72,5 @@ private void webBrowser_LocationChanged(object sender, EventArgs e) { this.locationChanged(webBrowser.Url); } - - private static bool SignificantlyEqual(Uri location1, Uri location2, UriComponents components) { - string value1 = location1.GetComponents(components, UriFormat.Unescaped); - string value2 = location2.GetComponents(components, UriFormat.Unescaped); - return string.Equals(value1, value2, StringComparison.Ordinal); - } } }
\ No newline at end of file |