using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace ServiceHelper { public partial class Progress : Form { public Progress() { InitializeComponent(); } public void Reset() { progressBar.Value = 0; } public void Done() { progressBar.Value = 100; this.Hide(); } public void UpdateProgress() { if (progressBar.Value < 80) { progressBar.Value += 20; } } } }