Commits

Anonymous committed 9a8ab9f

Unit Test works now; Changed icon; Added improved update dialog.

Comments (0)

Files changed (12)

Binary file modified.

Add a comment to this file

BlueGo/Arrow Down.ico

Removed
Old image

BlueGo/BlueGo.csproj

     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="UnitTest.cs" />
+    <Compile Include="FormUpdate.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormUpdate.Designer.cs">
+      <DependentUpon>FormUpdate.cs</DependentUpon>
+    </Compile>
     <Compile Include="Util.cs" />
     <Compile Include="WMI_Processor_Information.cs" />
     <EmbeddedResource Include="FormMain.resx">
       <DependentUpon>Resources.resx</DependentUpon>
       <DesignTime>True</DesignTime>
     </Compile>
+    <EmbeddedResource Include="FormUpdate.resx">
+      <DependentUpon>FormUpdate.cs</DependentUpon>
+    </EmbeddedResource>
     <None Include="Properties\Settings.settings">
       <Generator>SettingsSingleFileGenerator</Generator>
       <LastGenOutput>Settings.Designer.cs</LastGenOutput>

BlueGo/DownloadHelper.cs

                 request.Method = "HEAD";
                 //Getting the Web Response.
                 HttpWebResponse response = request.GetResponse() as HttpWebResponse;
+
+                response.Close();
+
                 //Returns TURE if the Status code == 200
                 return (response.StatusCode == HttpStatusCode.OK);
             }

BlueGo/FormMain.cs

 
                 if (strVersion != "0.0.7")
                 {
-                    MessageBox.Show("New version is available (BlueGo " + strVersion + "). It can be downloaded from " + strDownloadLink, "BlueGo");
+                    //MessageBox.Show("A new version of BlueGo is available (BlueGo " + strVersion + "). It can be downloaded from " + strDownloadLink, "BlueGo");
+                    FormUpdate formUpdate = new FormUpdate();
+                    formUpdate.Clean(strVersion, strDownloadLink);
+                    formUpdate.ShowDialog();
                 }
 
                 reader.Close();
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.