Skip to content

Commit

Permalink
[Fix]: About Dialog slow Get response. fixes #4
Browse files Browse the repository at this point in the history
[Fix]: Check for updates, is now async.
  • Loading branch information
EliotVU committed Nov 21, 2012
1 parent 3d7a803 commit 6a024a5
Show file tree
Hide file tree
Showing 23 changed files with 192 additions and 204 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
/*.vsp
/todo.txt
/Eliot.UE Explorer.Forms/
/_NCrunch_UE Explorer/
/*.ncrunchsolution.user
/*.ncrunchsolution
1 change: 1 addition & 0 deletions Eliot.Extensions.ExecGenerator/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/bin/
/obj/
/*.csproj.user
/*.ncrunchproject
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="UE Explorer">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\UE Explorer\UE Explorer.exe</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="UC_ExecGenerator.cs">
Expand Down Expand Up @@ -126,6 +122,10 @@
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\UE Explorer\UE Explorer.csproj">
<Project>{C30CD5A3-BEA1-48FA-9EFA-A11CB7A03A94}</Project>
<Name>UE Explorer</Name>
</ProjectReference>
<ProjectReference Include="..\UELib\Eliot.UELib.csproj">
<Project>{7E45273F-434F-42FA-8269-0E760AEB41E1}</Project>
<Name>Eliot.UELib</Name>
Expand Down
2 changes: 2 additions & 0 deletions Eliot.Extensions.NativesTableListGenerator/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/obj/
/*.Extensions.NTLGenerator.ncrunchproject
/*.ncrunchproject
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,10 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Storm.TabControl">
<HintPath>..\UE Explorer\libs\Storm.TabControl.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
Expand All @@ -62,10 +54,12 @@
<ProjectReference Include="..\UE Explorer\UE Explorer.csproj">
<Project>{C30CD5A3-BEA1-48FA-9EFA-A11CB7A03A94}</Project>
<Name>UE Explorer</Name>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\UELib\Eliot.UELib.csproj">
<Project>{7E45273F-434F-42FA-8269-0E760AEB41E1}</Project>
<Name>Eliot.UELib</Name>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Eliot.Utilities/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/obj/
/*.Utilities.ncrunchproject
6 changes: 4 additions & 2 deletions Eliot.Utilities/Net/WebRequestExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public static class WebRequestExtensions
public static string Post( this WebRequest webReq, string data )
{
var buffer = Encoding.UTF8.GetBytes( data );
webReq.Proxy = WebRequest.DefaultWebProxy;
webReq.Proxy = null;
//webReq.Proxy = WebRequest.DefaultWebProxy;
webReq.Method = "POST";
webReq.ContentType = "application/x-www-form-urlencoded";
webReq.ContentLength = buffer.Length;
Expand Down Expand Up @@ -47,7 +48,8 @@ public static string Post( this WebRequest webReq, string data )
/// <returns></returns>
public static MemoryStream Get( this WebRequest webReq )
{
webReq.Proxy = WebRequest.DefaultWebProxy;
//webReq.Proxy = WebRequest.DefaultWebProxy;
webReq.Proxy = null;
var buffer = new MemoryStream();
using( var response = webReq.GetResponse() )
{
Expand Down
7 changes: 6 additions & 1 deletion UE Explorer.sln
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Eliot.UE Explorer.Forms", "
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Eliot.Utilities", "Eliot.Utilities\Eliot.Utilities.csproj", "{C240217D-9B6A-46D4-892F-12C64853F8AE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Eliot.Extensions.NativesTableListGenerator", "Eliot.Extensions.NativesTableListGenerator\Eliot.Extensions.NativesTableListGenerator.csproj", "{FE7B4B6E-D050-4B66-AC12-3D28E4917D77}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Eliot.Extensions.NTLGenerator", "Eliot.Extensions.NativesTableListGenerator\Eliot.Extensions.NTLGenerator.csproj", "{FE7B4B6E-D050-4B66-AC12-3D28E4917D77}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2FA2CDB3-D252-447E-ACEF-6666073ACC96}"
ProjectSection(SolutionItems) = preProject
Performance1.psess = Performance1.psess
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
1 change: 1 addition & 0 deletions UE Explorer/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/*.csproj.user
/*.csproj.DotSettings.user
/*.csproj.DotSettings
/*.ncrunchproject
79 changes: 39 additions & 40 deletions UE Explorer/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions UE Explorer/Properties/Resources.nl-NL.resx
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,15 @@ If you happen to move the "UE Explorer" folder, uninstall or update it, then ple
<data name="UC_PackageExplorer_PerformNodeAction_QUESTIONEXPORTFOLDER" xml:space="preserve">
<value>Do you want to go the folder with the exported content?</value>
</data>
<data name="ProgramForm_checkForUpdates_New-Version" xml:space="preserve">
<data name="NEW_VERSION_AVAILABLE_TITLE" xml:space="preserve">
<value>Een nieuwere versie is beschikbaar!</value>
<comment>Dialog title.</comment>
</data>
<data name="ProgramForm_checkForUpdates_Progress-Status" xml:space="preserve">
<value>Zoeken naar updates...</value>
<comment>Status</comment>
</data>
<data name="ProgramForm_checkForUpdates_Latest-Version" xml:space="preserve">
<data name="NO_NEW_VERSION_AVAILABLE_MESSAGE" xml:space="preserve">
<value>Je hebt de laatste versie van {0}</value>
<comment>Dialog description</comment>
</data>
Expand All @@ -175,9 +175,8 @@ If you happen to move the "UE Explorer" folder, uninstall or update it, then ple
<value>Opties</value>
<comment>Tab title</comment>
</data>
<data name="ProgramForm_checkForUpdates_Failed" xml:space="preserve">
<value>Zoeken naar een update gefaald. Probeer later nog eens opnieuw!
Uitzondering: {0}</value>
<data name="CHECKFORUPDATES_FAILED_MESSAGE" xml:space="preserve">
<value>Zoeken naar een update gefaald. Probeer later nog eens opnieuw!</value>
</data>
<data name="Homepage" xml:space="preserve">
<value>Hoofdpagina</value>
Expand All @@ -199,7 +198,7 @@ Uitzondering: {0}</value>
<value>Bezig met het laden van {0}...</value>
<comment>Status description.</comment>
</data>
<data name="ProgramForm_checkForUpdates_New-Update" xml:space="preserve">
<data name="NEW_VERSION_AVAILABLE_MESSAGE" xml:space="preserve">
<value>Als je op ja klikt zul je naar de update gebracht worden!

Jouw versie: {0}Laatste versie: {1}</value>
Expand Down
11 changes: 5 additions & 6 deletions UE Explorer/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,15 @@ If you happen to move the "UE Explorer" folder, uninstall or update it, then ple
<data name="UC_PackageExplorer_PerformNodeAction_QUESTIONEXPORTFOLDER">
<value xml:space="preserve">Do you want to go the folder with the exported content?</value>
</data>
<data name="ProgramForm_checkForUpdates_New-Version">
<data name="NEW_VERSION_AVAILABLE_TITLE">
<value xml:space="preserve">A new version is available!</value>
<comment>Dialog title.</comment>
</data>
<data name="ProgramForm_checkForUpdates_Progress-Status">
<value xml:space="preserve">Checking for updates...</value>
<comment>Status</comment>
</data>
<data name="ProgramForm_checkForUpdates_Latest-Version">
<data name="NO_NEW_VERSION_AVAILABLE_MESSAGE">
<value xml:space="preserve">You have the latest version of {0}</value>
<comment>Dialog description</comment>
</data>
Expand All @@ -175,9 +175,8 @@ If you happen to move the "UE Explorer" folder, uninstall or update it, then ple
<value xml:space="preserve">Options</value>
<comment>Tab title</comment>
</data>
<data name="ProgramForm_checkForUpdates_Failed">
<value xml:space="preserve">Failed to request the latest version. Please try again later!
Exception:{0}</value>
<data name="CHECKFORUPDATES_FAILED_MESSAGE">
<value xml:space="preserve">Failed to request the latest version. Please try again later!</value>
</data>
<data name="Homepage">
<value xml:space="preserve">Homepage</value>
Expand All @@ -199,7 +198,7 @@ Exception:{0}</value>
<value xml:space="preserve">Loading file {0}...</value>
<comment>Status description.</comment>
</data>
<data name="ProgramForm_checkForUpdates_New-Update">
<data name="NEW_VERSION_AVAILABLE_MESSAGE">
<value xml:space="preserve">Clicking yes will bring you to the page with the latest version!

Your version: {0}
Expand Down

0 comments on commit 6a024a5

Please sign in to comment.