1234567891011121314151617181920212223242526272829303132333435363738 |
- 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;
- }
- }
- }
- }
|