예제 #1
0
 public static void HideProgress()
 {
     if (m_Form != null && m_Form.Visible)
     {
         m_Form.Close();
         m_Form = null;
     }
 }
예제 #2
0
 public static void Initialize(int start, int range, string title, CancelDelegate cancel, bool exponential)
 {
     m_Form = new frmProgress();
     m_Form.progressBar1.Minimum = start;
     m_Form.progressBar1.Maximum = start + range;
     m_Form.progressBar1.Value = start;
     m_Form.Text = title;
     m_Form.label2.Text = title;
     if (cancel == null) m_Form.button1.Enabled = false;
     m_Form.m_CancelDelegate = cancel;
     m_Form.Exponential = exponential;
 }