Exemplo n.º 1
0
                /// <summary>
                /// Set ProgressBars to blockstyle an zero if requested
                /// </summary>
                /// <param name="setBlockStyle">Set ProgressBars blockstyle if true</param>
                /// <param name="clearProgressBars">Set ProgressBar values to zero if true</param>
                public void ResetAllProgressBars(bool setBlockStyle, bool clearProgressBars)
                {
                    ExtProgrBarInv.DescriptionText(this._progressControle.expActualDir, "");
                    ExtProgrBarInv.DescriptionText(this._progressControle.expActualFile, "");

                    if (setBlockStyle)
                    {
                        ExtProgrBarInv.Style(this._progressControle.expActualDir, ProgressBarStyle.Blocks);
                        ExtProgrBarInv.Style(this._progressControle.expActualDir, ProgressBarStyle.Blocks);
                        ExtProgrBarInv.Style(this._progressControle.expAllByte, ProgressBarStyle.Blocks);
                        ExtProgrBarInv.Style(this._progressControle.expAllDir, ProgressBarStyle.Blocks);
                        ExtProgrBarInv.Style(this._progressControle.expAllItems, ProgressBarStyle.Blocks);
                        ExtProgrBarInv.Style(this._progressControle.expActualFile, ProgressBarStyle.Blocks);
                    }

                    if (clearProgressBars)
                    {
                        ExtProgrBarInv.Value(this._progressControle.expActualDir, null);
                        ExtProgrBarInv.Value(this._progressControle.expActualDir, null);
                        ExtProgrBarInv.Value(this._progressControle.expAllByte, null);
                        ExtProgrBarInv.Value(this._progressControle.expAllDir, null);
                        ExtProgrBarInv.Value(this._progressControle.expAllItems, null);
                        ExtProgrBarInv.Value(this._progressControle.expActualFile, null);
                    }
                }
Exemplo n.º 2
0
 /// <summary>
 /// Set the values to the extendes ProgressBar, given by progress
 /// </summary>
 /// <param name="progressBar">ProgressBar controle to set</param>
 /// <param name="progressElement">The progress of the process</param>
 public void SetProgressCluster(ExtProgressBar progressBar, ProgressStore.ProgressElement progressElement)
 {
     ExtProgrBarInv.DescriptionText(progressBar, progressElement.ElemenName);
     if (progressElement.ActualValue == null)    //Workaround because null will blank the numeric TextBoxes
     {
         ExtProgrBarInv.Value(progressBar, progressElement.MaxValue);
     }
     else
     {
         ExtProgrBarInv.MaxValue(progressBar, progressElement.MaxValue);
         ExtProgrBarInv.Value(progressBar, progressElement.ActualValue);
     }
 }
Exemplo n.º 3
0
            /// <summary>
            /// Set controles for state: CopyFinish
            /// </summary>
            internal void SetProgress_CopyFinish()
            {
                LabelInv.Text(this._progressControle.lblStepText, Stringtable._0x001A);
                DateTime ProgressStart = this._progressControle._progressStart;

                TextBoxInv.Text(this._progressControle.txtCopyStart, ProgressStart.ToString(FORMAT_TIME));
                TextBoxInv.Text(this._progressControle.txtCopyElapsed, this.TimeSpanForamt(this._progressControle.ElapsedTime));
                this._progressControle.expActualDir.DescriptionText = "";

                TextBoxInv.Text(this._progressControle._conclusionDurationTextBox, this.TimeSpanForamt(this._progressControle.ElapsedTime));

                ExtProgrBarInv.DescriptionText(this._progressControle.expActualDir, "");
                ExtProgrBarInv.DescriptionText(this._progressControle.expActualFile, "");
                ExtProgrBarInv.Style(this._progressControle.expAllByte, ProgressBarStyle.Blocks);
                ExtProgrBarInv.Style(this._progressControle.expAllDir, ProgressBarStyle.Blocks);
                ExtProgrBarInv.Style(this._progressControle.expAllItems, ProgressBarStyle.Blocks);
                ExtProgrBarInv.Style(this._progressControle.expActualDir, ProgressBarStyle.Blocks);
                ExtProgrBarInv.Value(this._progressControle.expActualDir, null);
                ExtProgrBarInv.Value(this._progressControle.expActualFile, null);
            }