X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=win%2FC%23%2FfrmDownload.cs;h=a3067e17dac07577583e2c90c66fc3faa06186b1;hb=32219d93ec8fcf0db6f7ca5d6045419882563951;hp=fb2b8ab0653dd0597d0bd34cb07c994f7d702831;hpb=3e441ebb595c36a1f2f029e4ce907bb1bffaea50;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/win/C#/frmDownload.cs b/win/C#/frmDownload.cs index fb2b8ab0..a3067e17 100644 --- a/win/C#/frmDownload.cs +++ b/win/C#/frmDownload.cs @@ -1,5 +1,4 @@ /* frmDownload.cs $ - This file is part of the HandBrake source code. Homepage: . It may be used under the terms of the GNU General Public License. */ @@ -29,7 +28,6 @@ namespace Handbrake private delegate void DownloadFailedCallback(); - public frmDownload(string filename) { InitializeComponent(); @@ -86,10 +84,10 @@ namespace Handbrake private void UpdateProgress(long bytesRead, long totalBytes) { - long p = (bytesRead*100)/totalBytes; + long p = (bytesRead * 100) / totalBytes; int.TryParse(p.ToString(), out _progress); progress_download.Value = _progress; - lblProgress.Text = (bytesRead/1024) + "k of " + (totalBytes/1024) + "k "; + lblProgress.Text = (bytesRead / 1024) + "k of " + (totalBytes / 1024) + "k "; } private void DownloadComplete()