public void UpdateValue(ProgressPanel ProgressPanel, int NewValue) { ProgressPanel.Value = NewValue; } }
public class ProgressPanel : System.Windows.Forms.StatusBarPanel { private int m_Minimum = 1; private int m_Maximum = 100; private int m_Value = 0; private Color m_Color;
public ProgressPanel() { this.Style = StatusBarPanelStyle.OwnerDraw; this.ForeColor = Color.DarkBlue; }
public int Minimum { get { return m_Minimum; } set { m_Minimum = value; } }
public int Maximum { get { return m_Maximum; } set { m_Maximum = value; } }
public int Value { get { return m_Value; } set { m_Value = value; } }
public Color ForeColor { get { return m_Color; } set { m_Color = value; } } }