Browse Source

removed percentage while downloading

tags/1.5
Jonas Leder 1 month ago
parent
commit
a6e7dc2d70
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      Youtube-Downloader/Form1.cs

+ 6
- 6
Youtube-Downloader/Form1.cs View File

@@ -61,8 +61,8 @@ namespace Youtube_Downloader
61 61
         private void ProgressChanged_youtube_dl(object sender, DownloadProgressChangedEventArgs e)
62 62
         {
63 63
             progressBar1.Value = e.ProgressPercentage;
64
-            int percent = (int)(((double)progressBar1.Value / (double)progressBar1.Maximum) * 100);
65
-            progressBar1.CreateGraphics().DrawString(percent.ToString() + "%", new Font("Arial", (float)8.25, FontStyle.Regular), Brushes.Black, new PointF(progressBar1.Width / 2 - 10, progressBar1.Height / 2 - 7));
64
+            //int percent = (int)(((double)progressBar1.Value / (double)progressBar1.Maximum) * 100);
65
+            //progressBar1.CreateGraphics().DrawString(percent.ToString() + "%", new Font("Arial", (float)8.25, FontStyle.Regular), Brushes.Black, new PointF(progressBar1.Width / 2 - 10, progressBar1.Height / 2 - 7));
66 66
         }
67 67
 
68 68
         private void button2_Click(object sender, EventArgs e)
@@ -118,8 +118,8 @@ namespace Youtube_Downloader
118 118
         private void ProgressChanged_ffmpeg(object sender, DownloadProgressChangedEventArgs e)
119 119
         {
120 120
             progressBar2.Value = e.ProgressPercentage;
121
-            int percent = (int)(((double)progressBar2.Value / (double)progressBar2.Maximum) * 100);
122
-            progressBar2.CreateGraphics().DrawString(percent.ToString() + "%", new Font("Arial", (float)8.25, FontStyle.Regular), Brushes.Black, new PointF(progressBar2.Width / 2 - 10, progressBar2.Height / 2 - 7));
121
+            //int percent = (int)(((double)progressBar2.Value / (double)progressBar2.Maximum) * 100);
122
+            //progressBar2.CreateGraphics().DrawString(percent.ToString() + "%", new Font("Arial", (float)8.25, FontStyle.Regular), Brushes.Black, new PointF(progressBar2.Width / 2 - 10, progressBar2.Height / 2 - 7));
123 123
         }
124 124
 
125 125
         private void button4_Click(object sender, EventArgs e)
@@ -198,8 +198,8 @@ namespace Youtube_Downloader
198 198
         private void ProgressChanged_youtube_downloader(object sender, DownloadProgressChangedEventArgs e)
199 199
         {
200 200
             progressBar3.Value = e.ProgressPercentage;
201
-            int percent = (int)(((double)progressBar3.Value / (double)progressBar3.Maximum) * 100);
202
-            progressBar3.CreateGraphics().DrawString(percent.ToString() + "%", new Font("Arial", (float)8.25, FontStyle.Regular), Brushes.Black, new PointF(progressBar3.Width / 2 - 10, progressBar3.Height / 2 - 7));
201
+            //int percent = (int)(((double)progressBar3.Value / (double)progressBar3.Maximum) * 100);
202
+            //progressBar3.CreateGraphics().DrawString(percent.ToString() + "%", new Font("Arial", (float)8.25, FontStyle.Regular), Brushes.Black, new PointF(progressBar3.Width / 2 - 10, progressBar3.Height / 2 - 7));
203 203
         }
204 204
 
205 205
         private void checkBox1_CheckedChanged(object sender, EventArgs e)

Loading…
Cancel
Save