private void ChangeProgress(int progress) { uploadedLabel.Text = "Uploaded: " + Utils.FormatSize(bytesTransferred) + " (" + ((double)bytesTransferred * 100 / totalFileSize).ToString("F2") + "%)"; totalSizeLabel.Text = "Total Size: " + Utils.FormatSize(totalFileSize); speedLabel.Text = "Speed: " + Utils.FormatSize(bytesPerSecond) + "/s"; progressUpload.Value = progress; if (OSVersion.HasExtendedTaskbar) { Windows7Taskbar.SetTaskbarProgress(Program.HackerWindow, this.progressUpload); } }