From 372153ee9d9a2b18afda492c861bced6be665865 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Fri, 21 Dec 2012 18:17:15 +0100 Subject: [PATCH] add missing files --- .../CookieAwareWebClient.cs | 32 +++++ src/Tools/StringResourceTool/MainForm.resx | 120 ++++++++++++++++++ 2 files changed, 152 insertions(+) create mode 100644 src/Tools/StringResourceTool/CookieAwareWebClient.cs create mode 100644 src/Tools/StringResourceTool/MainForm.resx diff --git a/src/Tools/StringResourceTool/CookieAwareWebClient.cs b/src/Tools/StringResourceTool/CookieAwareWebClient.cs new file mode 100644 index 0000000000..19a98b4607 --- /dev/null +++ b/src/Tools/StringResourceTool/CookieAwareWebClient.cs @@ -0,0 +1,32 @@ +/* + * Created by SharpDevelop. + * User: Daniel Grunwald + * Date: 08.10.2005 + * Time: 19:47 + */ +using System; +using System.Net; + +namespace StringResourceTool +{ + public class CookieAwareWebClient : WebClient + { + CookieContainer container; + + public CookieAwareWebClient(CookieContainer container) + { + if (container == null) + throw new ArgumentNullException("container"); + this.container = container; + } + + protected override WebRequest GetWebRequest(Uri address) + { + WebRequest request = base.GetWebRequest(address); + if (request is HttpWebRequest) { + (request as HttpWebRequest).CookieContainer = container; + } + return request; + } + } +} diff --git a/src/Tools/StringResourceTool/MainForm.resx b/src/Tools/StringResourceTool/MainForm.resx new file mode 100644 index 0000000000..1af7de150c --- /dev/null +++ b/src/Tools/StringResourceTool/MainForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file