Ejemplo n.º 1
0
 public void ChangeProgressBar(int value, string text, ProgressBarStyle style)
 {
     if (value != 100)
     {
         download_bar.Visible   = true;
         download_label.Visible = true;
         download_label.Text    = text;
         download_bar.Style     = style;
         if (style != ProgressBarStyle.Marquee)
         {
             download_bar.Value = value;
         }
     }
     else if (value == 100 && text.Equals("Parsing build list"))
     {
         download_label.Text = text;
         download_bar.Style  = style;
         ProcessBuildList process_build = new ProcessBuildList();
         m_build_list = process_build.Run(s_major_version);
         PopulateComboBoxes(m_build_list);
     }
     else
     {
         download_label.Visible = false;
         download_bar.Visible   = false;
     }
 }
Ejemplo n.º 2
0
 public void ChangeProgressBar(int value, string text, ProgressBarStyle style)
 {
     if (value != 100)
     {
         download_bar.Visible = true;
         download_label.Visible = true;
         download_label.Text = text;
         download_bar.Style = style;
         if (style != ProgressBarStyle.Marquee)
             download_bar.Value = value;
     }
     else if (value == 100 && text.Equals("Parsing build list"))
     {
         download_label.Text = text;
         download_bar.Style = style;
         ProcessBuildList process_build = new ProcessBuildList();
         m_build_list = process_build.Run(s_major_version);
         PopulateComboBoxes(m_build_list);
     }
     else
     {
         download_label.Visible = false;
         download_bar.Visible = false;
     }
 }