summaryrefslogtreecommitdiffstats
path: root/win/C#/frmDownload.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-09-28 18:19:47 +0000
committersr55 <[email protected]>2008-09-28 18:19:47 +0000
commit1296a228affb02f0b0fa2bc7f962e5a993332082 (patch)
treeea4d2e8bce3446d47ee34776ec4c4de244e6ba93 /win/C#/frmDownload.cs
parent37897e9ed4608d8f3e400d4090220f3a92a55fc3 (diff)
WinGui:
- AppcastReader.cs re-factored. Reduces number of connections to the server. - Few UI tweaks to the updater / downloader git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1781 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmDownload.cs')
-rw-r--r--win/C#/frmDownload.cs11
1 files changed, 4 insertions, 7 deletions
diff --git a/win/C#/frmDownload.cs b/win/C#/frmDownload.cs
index 872ec87e7..8fe53ba4f 100644
--- a/win/C#/frmDownload.cs
+++ b/win/C#/frmDownload.cs
@@ -6,10 +6,6 @@
using System;
using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;
@@ -30,20 +26,21 @@ namespace Handbrake
private delegate void DownloadCompleteCallback();
private delegate void DownloadFailedCallback();
+ private string file;
- public frmDownload()
+ public frmDownload(string filename)
{
InitializeComponent();
+ file = filename;
downloadThread = new Thread(Download);
downloadThread.Start();
}
private void Download()
{
- Functions.AppcastReader rssRead = new Functions.AppcastReader();
string tempPath = Path.Combine(Path.GetTempPath(), "handbrake-setup.exe");
- string hbUpdate = rssRead.downloadFile();
+ string hbUpdate = file;
WebClient wcDownload = new WebClient();
try