summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--samples/OAuthConsumerWpf/Authorize2.xaml8
-rw-r--r--samples/OAuthConsumerWpf/Authorize2.xaml.cs51
-rw-r--r--samples/OAuthConsumerWpf/MainWindow.xaml.cs15
-rw-r--r--src/DotNetOpenAuth/DotNetOpenAuth.csproj10
-rw-r--r--src/DotNetOpenAuth/OAuth2/ClientAuthorizationView.Designer.cs56
-rw-r--r--src/DotNetOpenAuth/OAuth2/ClientAuthorizationView.cs192
-rw-r--r--src/DotNetOpenAuth/OAuth2/ClientAuthorizationView.resx120
7 files changed, 397 insertions, 55 deletions
diff --git a/samples/OAuthConsumerWpf/Authorize2.xaml b/samples/OAuthConsumerWpf/Authorize2.xaml
index eb59060..b477488 100644
--- a/samples/OAuthConsumerWpf/Authorize2.xaml
+++ b/samples/OAuthConsumerWpf/Authorize2.xaml
@@ -1,11 +1,11 @@
<Window x:Class="DotNetOpenAuth.Samples.OAuthConsumerWpf.Authorize2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:oauth2="clr-namespace:DotNetOpenAuth.OAuth2;assembly=DotNetOpenAuth"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Authorize" Height="500" Width="500">
<DockPanel LastChildFill="True">
- <WindowsFormsHost Name="windowsFormsHost1">
- <wf:WebBrowser x:Name="webBrowser" Dock="Fill" Navigating="webBrowser_Navigating" Navigated="webBrowser_Navigated" LocationChanged="webBrowser_LocationChanged" IsWebBrowserContextMenuEnabled="False" />
+ <WindowsFormsHost>
+ <oauth2:ClientAuthorizationView x:Name="clientAuthorizationView" Completed="clientAuthorizationView_Completed" />
</WindowsFormsHost>
</DockPanel>
</Window>
diff --git a/samples/OAuthConsumerWpf/Authorize2.xaml.cs b/samples/OAuthConsumerWpf/Authorize2.xaml.cs
index 1480cd4..2201d3e 100644
--- a/samples/OAuthConsumerWpf/Authorize2.xaml.cs
+++ b/samples/OAuthConsumerWpf/Authorize2.xaml.cs
@@ -20,57 +20,20 @@
/// Interaction logic for Authorize2.xaml
/// </summary>
public partial class Authorize2 : Window {
- private UserAgentClient client;
-
- internal Authorize2(UserAgentClient client, IAuthorizationState authorizationState) {
+ internal Authorize2(UserAgentClient client) {
Contract.Requires(client != null, "client");
- Contract.Requires(authorizationState != null, "authorizationState");
this.InitializeComponent();
-
- this.client = client;
- this.Authorization = authorizationState;
- Uri authorizationUrl = this.client.RequestUserAuthorization(this.Authorization);
- this.webBrowser.Navigate(authorizationUrl.AbsoluteUri); // use AbsoluteUri to workaround bug in WebBrowser that calls Uri.ToString instead of Uri.AbsoluteUri leading to escaping errors.
- }
-
- 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);
- }
-
- private void locationChanged(Uri location) {
- ////if (location.Scheme == "res") {
- //// this.DialogResult = false;
- //// this.Close();
- //// MessageBox.Show("An error occurred during authorization.");
- ////}
-
- if (SignificantlyEqual(location, this.Authorization.Callback, UriComponents.SchemeAndServer | UriComponents.Path)) {
- try {
- this.client.ProcessUserAuthorization(location, this.Authorization);
- } catch (ProtocolException ex) {
- MessageBox.Show(ex.ToStringDescriptive());
- } finally {
- this.DialogResult = !string.IsNullOrEmpty(this.Authorization.AccessToken);
- this.Close();
- }
- }
+ this.clientAuthorizationView.Client = client;
}
- private void webBrowser_Navigated(object sender, System.Windows.Forms.WebBrowserNavigatedEventArgs e) {
- this.locationChanged(e.Url);
+ public IAuthorizationState Authorization {
+ get { return this.clientAuthorizationView.Authorization; }
}
- private void webBrowser_LocationChanged(object sender, EventArgs e) {
- this.locationChanged(this.webBrowser.Url);
+ private void clientAuthorizationView_Completed(object sender, ClientAuthorizationView.ClientAuthorizationCompleteEventArgs e) {
+ this.DialogResult = e.Authorization != null;
+ this.Close();
}
}
} \ No newline at end of file
diff --git a/samples/OAuthConsumerWpf/MainWindow.xaml.cs b/samples/OAuthConsumerWpf/MainWindow.xaml.cs
index 3c55eeb..eac6353 100644
--- a/samples/OAuthConsumerWpf/MainWindow.xaml.cs
+++ b/samples/OAuthConsumerWpf/MainWindow.xaml.cs
@@ -105,12 +105,13 @@
}
private void beginWcfAuthorizationButton_Click(object sender, RoutedEventArgs e) {
- this.wcfAccessToken = new AuthorizationState(OAuthUtilities.SplitScopes("http://tempuri.org/IDataApi/GetName http://tempuri.org/IDataApi/GetAge http://tempuri.org/IDataApi/GetFavoriteSites"));
- this.wcfAccessToken.Callback = new Uri("http://localhost:59721/");
- var auth = new Authorize2(this.wcf, this.wcfAccessToken);
+ var auth = new Authorize2(this.wcf);
+ auth.Authorization.Scope.AddRange(OAuthUtilities.SplitScopes("http://tempuri.org/IDataApi/GetName http://tempuri.org/IDataApi/GetAge http://tempuri.org/IDataApi/GetFavoriteSites"));
+ auth.Authorization.Callback = new Uri("http://localhost:59721/");
auth.Owner = this;
bool? result = auth.ShowDialog();
if (result.HasValue && result.Value) {
+ this.wcfAccessToken = auth.Authorization;
this.wcfName.Content = CallService(client => client.GetName());
this.wcfAge.Content = CallService(client => client.GetAge());
this.wcfFavoriteSites.Content = CallService(client => string.Join(", ", client.GetFavoriteSites()));
@@ -192,20 +193,20 @@
try {
var client = new OAuth2.UserAgentClient(authServer, this.oauth2ClientIdentifierBox.Text, this.oauth2ClientSecretBox.Text);
- var authorization = new AuthorizationState(OAuthUtilities.SplitScopes(this.oauth2ScopeBox.Text));
- var authorizePopup = new Authorize2(client, authorization);
+ var authorizePopup = new Authorize2(client);
+ authorizePopup.Authorization.Scope.AddRange(OAuthUtilities.SplitScopes(this.oauth2ScopeBox.Text));
authorizePopup.Owner = this;
bool? result = authorizePopup.ShowDialog();
if (result.HasValue && result.Value) {
var requestUri = new UriBuilder(this.oauth2ResourceUrlBox.Text);
if (this.oauth2ResourceHttpMethodList.SelectedIndex > 0) {
- requestUri.AppendQueryArgument("access_token", authorization.AccessToken);
+ requestUri.AppendQueryArgument("access_token", authorizePopup.Authorization.AccessToken);
}
var request = (HttpWebRequest)WebRequest.Create(requestUri.Uri);
request.Method = this.oauth2ResourceHttpMethodList.SelectedIndex < 2 ? "GET" : "POST";
if (this.oauth2ResourceHttpMethodList.SelectedIndex == 0) {
- client.AuthorizeRequest(request, authorization);
+ client.AuthorizeRequest(request, authorizePopup.Authorization);
}
using (var resourceResponse = request.GetResponse()) {
diff --git a/src/DotNetOpenAuth/DotNetOpenAuth.csproj b/src/DotNetOpenAuth/DotNetOpenAuth.csproj
index aac3a1c..fafd97e 100644
--- a/src/DotNetOpenAuth/DotNetOpenAuth.csproj
+++ b/src/DotNetOpenAuth/DotNetOpenAuth.csproj
@@ -253,6 +253,7 @@ http://opensource.org/licenses/ms-pl.html
<Reference Include="System.Web.Routing">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
+ <Reference Include="System.Windows.Forms" />
<Reference Include="System.Xaml" Condition=" '$(ClrVersion)' == '4' " />
<Reference Include="System.XML" />
<Reference Include="System.Xml.Linq">
@@ -380,6 +381,12 @@ http://opensource.org/licenses/ms-pl.html
<Compile Include="OAuth2\ChannelElements\AuthorizationCode.cs" />
<Compile Include="OAuth2\ChannelElements\AuthorizationCodeBindingElement.cs" />
<Compile Include="OAuth2\ChannelElements\AuthServerAllFlowsBindingElement.cs" />
+ <Compile Include="OAuth2\ClientAuthorizationView.cs">
+ <SubType>UserControl</SubType>
+ </Compile>
+ <Compile Include="OAuth2\ClientAuthorizationView.Designer.cs">
+ <DependentUpon>ClientAuthorizationView.cs</DependentUpon>
+ </Compile>
<Compile Include="OAuth2\IAccessTokenAnalyzer.cs" />
<Compile Include="OAuth2\IAuthorizationServer.cs" />
<Compile Include="OAuth2\IAuthorizationState.cs" />
@@ -762,6 +769,9 @@ http://opensource.org/licenses/ms-pl.html
<LastGenOutput>MessagingStrings.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
+ <EmbeddedResource Include="OAuth2\ClientAuthorizationView.resx">
+ <DependentUpon>ClientAuthorizationView.cs</DependentUpon>
+ </EmbeddedResource>
<EmbeddedResource Include="OAuth\OAuthStrings.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>OAuthStrings.Designer.cs</LastGenOutput>
diff --git a/src/DotNetOpenAuth/OAuth2/ClientAuthorizationView.Designer.cs b/src/DotNetOpenAuth/OAuth2/ClientAuthorizationView.Designer.cs
new file mode 100644
index 0000000..c05a4b8
--- /dev/null
+++ b/src/DotNetOpenAuth/OAuth2/ClientAuthorizationView.Designer.cs
@@ -0,0 +1,56 @@
+namespace DotNetOpenAuth.OAuth2 {
+ partial class ClientAuthorizationView {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing) {
+ if (disposing && (components != null)) {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Component Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent() {
+ this.webBrowser1 = new System.Windows.Forms.WebBrowser();
+ this.SuspendLayout();
+ //
+ // webBrowser1
+ //
+ this.webBrowser1.AllowWebBrowserDrop = false;
+ this.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.webBrowser1.IsWebBrowserContextMenuEnabled = false;
+ this.webBrowser1.Location = new System.Drawing.Point(0, 0);
+ this.webBrowser1.Name = "webBrowser1";
+ this.webBrowser1.Size = new System.Drawing.Size(150, 150);
+ this.webBrowser1.TabIndex = 0;
+ this.webBrowser1.Navigated += new System.Windows.Forms.WebBrowserNavigatedEventHandler(this.WebBrowser1_Navigated);
+ this.webBrowser1.Navigating += new System.Windows.Forms.WebBrowserNavigatingEventHandler(this.WebBrowser1_Navigating);
+ this.webBrowser1.LocationChanged += new System.EventHandler(this.WebBrowser1_LocationChanged);
+ //
+ // ClientAuthorizationView
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.webBrowser1);
+ this.Name = "ClientAuthorizationView";
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.WebBrowser webBrowser1;
+ }
+}
diff --git a/src/DotNetOpenAuth/OAuth2/ClientAuthorizationView.cs b/src/DotNetOpenAuth/OAuth2/ClientAuthorizationView.cs
new file mode 100644
index 0000000..ffa217b
--- /dev/null
+++ b/src/DotNetOpenAuth/OAuth2/ClientAuthorizationView.cs
@@ -0,0 +1,192 @@
+//-----------------------------------------------------------------------
+// <copyright file="ClientAuthorizationView.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOpenAuth.OAuth2 {
+ using System;
+ using System.Collections.Generic;
+ using System.ComponentModel;
+ using System.Data;
+ using System.Diagnostics.Contracts;
+ using System.Drawing;
+ using System.Linq;
+ using System.Text;
+ using System.Windows.Forms;
+ using DotNetOpenAuth.Messaging;
+
+ /// <summary>
+ /// A WinForms control that hosts a mini-browser for hosting by native applications to
+ /// allow the user to authorize the client without leaving the application.
+ /// </summary>
+ public partial class ClientAuthorizationView : UserControl {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ClientAuthorizationView"/> class.
+ /// </summary>
+ public ClientAuthorizationView() {
+ this.InitializeComponent();
+
+ this.Authorization = new AuthorizationState();
+ }
+
+ /// <summary>
+ /// Occurs when the authorization flow has completed.
+ /// </summary>
+ public event EventHandler<ClientAuthorizationCompleteEventArgs> Completed;
+
+ /// <summary>
+ /// Gets the authorization tracking object.
+ /// </summary>
+ public IAuthorizationState Authorization { get; private set; }
+
+ /// <summary>
+ /// Gets or sets the client used to coordinate the authorization flow.
+ /// </summary>
+ public UserAgentClient Client { get; set; }
+
+ /// <summary>
+ /// Gets the set of scopes that describe the requested level of access.
+ /// </summary>
+ public HashSet<string> Scope {
+ get { return this.Authorization.Scope; }
+ }
+
+ /// <summary>
+ /// Gets or sets the callback URL used to indicate the flow has completed.
+ /// </summary>
+ public Uri Callback {
+ get { return this.Authorization.Callback; }
+ set { this.Authorization.Callback = value; }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether the authorization flow has been completed.
+ /// </summary>
+ public bool IsCompleted {
+ get { return this.Authorization == null || this.Authorization.AccessToken != null; }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether authorization has been granted.
+ /// </summary>
+ /// <value>Null if <see cref="IsCompleted"/> is <c>false</c></value>
+ public bool? IsGranted {
+ get {
+ if (this.Authorization == null) {
+ return false;
+ }
+
+ return this.Authorization.AccessToken != null ? (bool?)true : null;
+ }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether authorization has been rejected.
+ /// </summary>
+ /// <value>Null if <see cref="IsCompleted"/> is <c>false</c></value>
+ public bool? IsRejected {
+ get {
+ bool? granted = this.IsGranted;
+ return granted.HasValue ? (bool?)(!granted.Value) : null;
+ }
+ }
+
+ /// <summary>
+ /// Called when the authorization flow has been completed.
+ /// </summary>
+ protected virtual void OnCompleted() {
+ var completed = this.Completed;
+ if (completed != null) {
+ completed(this, new ClientAuthorizationCompleteEventArgs(this.Authorization));
+ }
+ }
+
+ /// <summary>
+ /// Raises the <see cref="E:System.Windows.Forms.UserControl.Load"/> event.
+ /// </summary>
+ /// <param name="e">An <see cref="T:System.EventArgs"/> that contains the event data.</param>
+ protected override void OnLoad(EventArgs e) {
+ base.OnLoad(e);
+
+ Uri authorizationUrl = this.Client.RequestUserAuthorization(this.Authorization);
+ this.webBrowser1.Navigate(authorizationUrl.AbsoluteUri); // use AbsoluteUri to workaround bug in WebBrowser that calls Uri.ToString instead of Uri.AbsoluteUri leading to escaping errors.
+ }
+
+ /// <summary>
+ /// Tests whether two URLs are equal for purposes of detecting the conclusion of authorization.
+ /// </summary>
+ /// <param name="location1">The first location.</param>
+ /// <param name="location2">The second location.</param>
+ /// <param name="components">The components to compare.</param>
+ /// <returns><c>true</c> if the given components are equal.</returns>
+ 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);
+ }
+
+ /// <summary>
+ /// Handles the Navigating event of the webBrowser1 control.
+ /// </summary>
+ /// <param name="sender">The source of the event.</param>
+ /// <param name="e">The <see cref="System.Windows.Forms.WebBrowserNavigatingEventArgs"/> instance containing the event data.</param>
+ private void WebBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e) {
+ this.ProcessLocationChanged(e.Url);
+ }
+
+ /// <summary>
+ /// Processes changes in the URL the browser has navigated to.
+ /// </summary>
+ /// <param name="location">The location.</param>
+ private void ProcessLocationChanged(Uri location) {
+ if (SignificantlyEqual(location, this.Authorization.Callback, UriComponents.SchemeAndServer | UriComponents.Path)) {
+ try {
+ this.Client.ProcessUserAuthorization(location, this.Authorization);
+ } catch (ProtocolException ex) {
+ MessageBox.Show(ex.ToStringDescriptive());
+ } finally {
+ this.OnCompleted();
+ }
+ }
+ }
+
+ /// <summary>
+ /// Handles the Navigated event of the webBrowser1 control.
+ /// </summary>
+ /// <param name="sender">The source of the event.</param>
+ /// <param name="e">The <see cref="System.Windows.Forms.WebBrowserNavigatedEventArgs"/> instance containing the event data.</param>
+ private void WebBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e) {
+ this.ProcessLocationChanged(e.Url);
+ }
+
+ /// <summary>
+ /// Handles the LocationChanged event of the webBrowser1 control.
+ /// </summary>
+ /// <param name="sender">The source of the event.</param>
+ /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
+ private void WebBrowser1_LocationChanged(object sender, EventArgs e) {
+ this.ProcessLocationChanged(this.webBrowser1.Url);
+ }
+
+ /// <summary>
+ /// Describes the results of a completed authorization flow.
+ /// </summary>
+ public class ClientAuthorizationCompleteEventArgs : EventArgs {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ClientAuthorizationCompleteEventArgs"/> class.
+ /// </summary>
+ /// <param name="authorization">The authorization.</param>
+ public ClientAuthorizationCompleteEventArgs(IAuthorizationState authorization) {
+ Contract.Requires<ArgumentNullException>(authorization != null);
+ this.Authorization = authorization;
+ }
+
+ /// <summary>
+ /// Gets the authorization tracking object.
+ /// </summary>
+ /// <value>Null if authorization was rejected by the user.</value>
+ public IAuthorizationState Authorization { get; private set; }
+ }
+ }
+}
diff --git a/src/DotNetOpenAuth/OAuth2/ClientAuthorizationView.resx b/src/DotNetOpenAuth/OAuth2/ClientAuthorizationView.resx
new file mode 100644
index 0000000..7080a7d
--- /dev/null
+++ b/src/DotNetOpenAuth/OAuth2/ClientAuthorizationView.resx
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root> \ No newline at end of file