1using System.ComponentModel;
2using System.Diagnostics;
6 public partial class Progress : Form
8 Stopwatch watch =
new Stopwatch();
12 InitializeComponent();
14 statusLabel.Text = status;
15 fileLabel.Text = file;
24 progressBar.Value = p;
33 progressBar.Value = 100;
35 progressBar.Value = (int)(p * 100);
43 private void timer_Tick(
object sender, EventArgs e)
45 timeLabel.Text = watch.Elapsed.Seconds +
"." + watch.Elapsed.Milliseconds +
"s";
47 [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
50 get {
return statusLabel.Text; }
51 set { statusLabel.Text = value; }
void UpdateProgressF(float p)
Progress(string file, string status)
void UpdateProgress(int p)