/* frmDownload.cs $\r
- \r
- This file is part of the HandBrake source code.\r
- Homepage: <http://handbrake.fr>.\r
- It may be used under the terms of the GNU General Public License. */\r
+ This file is part of the HandBrake source code.\r
+ Homepage: <http://handbrake.fr>.\r
+ It may be used under the terms of the GNU General Public License. */\r
\r
namespace Handbrake\r
{\r
\r
private delegate void DownloadFailedCallback();\r
\r
-\r
public frmDownload(string filename)\r
{\r
InitializeComponent();\r
\r
private void UpdateProgress(long bytesRead, long totalBytes)\r
{\r
- long p = (bytesRead*100)/totalBytes;\r
+ long p = (bytesRead * 100) / totalBytes;\r
int.TryParse(p.ToString(), out _progress);\r
progress_download.Value = _progress;\r
- lblProgress.Text = (bytesRead/1024) + "k of " + (totalBytes/1024) + "k ";\r
+ lblProgress.Text = (bytesRead / 1024) + "k of " + (totalBytes / 1024) + "k ";\r
}\r
\r
private void DownloadComplete()\r