From 8702d800eea2600b9b5b902f255bf25c9b995a1b Mon Sep 17 00:00:00 2001 From: givememystuffplease Date: Wed, 19 Aug 2009 16:40:43 +0000 Subject: [PATCH] A couple proxy changes. --- NUS Downloader/Form1.Designer.cs | 1 + NUS Downloader/Form1.cs | 16 +++++++++++++++- NUS Downloader/NUS Downloader.csproj | 4 ++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/NUS Downloader/Form1.Designer.cs b/NUS Downloader/Form1.Designer.cs index f370bd9..148fc5d 100644 --- a/NUS Downloader/Form1.Designer.cs +++ b/NUS Downloader/Form1.Designer.cs @@ -957,6 +957,7 @@ this.saveaswadbox.TabIndex = 43; this.saveaswadbox.Text = "SaveAs"; this.saveaswadbox.UseVisualStyleBackColor = true; + this.saveaswadbox.Paint += new System.Windows.Forms.PaintEventHandler(this.saveaswadbox_Paint); // // deletecontentsbox // diff --git a/NUS Downloader/Form1.cs b/NUS Downloader/Form1.cs index 8eb549d..ff0e210 100644 --- a/NUS Downloader/Form1.cs +++ b/NUS Downloader/Form1.cs @@ -18,7 +18,7 @@ namespace NUS_Downloader const string NUSURL = "http://nus.cdn.shop.wii.com/ccs/download/"; const string DSiNUSURL = "http://nus.cdn.t.shop.nintendowifi.net/ccs/download/"; // TODO: Always remember to change version! - string version = "v1.3"; + string version = "v1.3 Beta"; WebClient generalWC = new WebClient(); static RijndaelManaged rijndaelCipher; static bool dsidecrypt = false; @@ -765,6 +765,10 @@ namespace NUS_Downloader // Set UserAgent to Wii value generalWC.Headers.Add("User-Agent", "wii libnup/1.0"); + // Proxy + generalWC.Proxy = WebRequest.GetSystemWebProxy(); + generalWC.UseDefaultCredentials = true; + // Get placement directory early... string titledirectory; if (titleversion.Text == "") @@ -3649,5 +3653,15 @@ namespace NUS_Downloader saveaswadbox.Enabled = packbox.Enabled; deletecontentsbox.Enabled = packbox.Enabled; } + + private void saveaswadbox_Paint(object sender, PaintEventArgs e) + { + //e.Graphics. + /*Rectangle rect = new Rectangle(0, 0, 16, 16); + if (saveaswadbox.Checked) + e.Graphics.DrawImageUnscaledAndClipped(green, rect); + else + e.Graphics.DrawImageUnscaled(orange, -7, -5); */ + } } } diff --git a/NUS Downloader/NUS Downloader.csproj b/NUS Downloader/NUS Downloader.csproj index e603db5..bc1c663 100644 --- a/NUS Downloader/NUS Downloader.csproj +++ b/NUS Downloader/NUS Downloader.csproj @@ -16,7 +16,7 @@ false 5828AACDBD1A48E3768B7E0465E90D0E96E2BE4C NUS Downloader_TemporaryKey.pfx - false + true true LocalIntranet Properties\app.manifest @@ -30,7 +30,7 @@ false false true - 7 + 8 1.0.0.%2a false true