| | |
| | | #region ■ 变量声明___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 进图条能否往回走(默认可以)
|
| | | /// 进度条能否往回走(默认可以)
|
| | | /// </summary>
|
| | | public bool ProgressBarGoback = true;
|
| | | /// <summary>
|
| | |
| | | /// 模式区分
|
| | | /// </summary>
|
| | | private int m_ModeDiv = -1;
|
| | |
|
| | | /// <summary>
|
| | | /// 进度条是否可视
|
| | | /// </summary>
|
| | | public new bool Visible
|
| | | {
|
| | | get { return base.Visible; }
|
| | | set
|
| | | {
|
| | | if (this.frameProgressBack != null)
|
| | | {
|
| | | this.frameProgressBack.Visible = value;
|
| | | }
|
| | | base.Visible = value;
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | /// <param name="value"></param>
|
| | | private void SetValueEx(decimal value)
|
| | | {
|
| | | if (btnProgressBar == null || this.m_ModeDiv != 1 || value > 1)
|
| | | if (btnProgressBar == null || this.m_ModeDiv != 1)
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (value > 1) { value = 1; }
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | int width = (int)(value * this.Width);
|