コード例 #1
0
            /// <summary>
            /// Set controles for state: DeleteBusy
            /// </summary>
            internal void SetPRogress_DeleteBusy(ProgressStore progressStore)
            {
                LabelInv.Text(this._progressControle.lblStepText, Stringtable._0x0022);
                TextBoxInv.Text(this._progressControle.txtCopyElapsed, this.TimeSpanForamt(this._progressControle.ElapsedTime));

                this._setControleValue.SetProgressCluster(this._progressControle.expActualDir, progressStore.DirectroyFiles);
                this._setControleValue.SetProgressCluster(this._progressControle.expActualFile, progressStore.FileBytes);
            }
コード例 #2
0
 /// <summary>
 /// Set controles for state: Cancel
 /// </summary>
 internal void SetProgress_Cancel()
 {
     LabelInv.Text(this._progressControle.lblStepText, Stringtable._0x001B);
     ExtProgrBarInv.Style(this._progressControle.expAllItems, ProgressBarStyle.Blocks);
     ExtProgrBarInv.Style(this._progressControle.expAllByte, ProgressBarStyle.Blocks);
     ExtProgrBarInv.Style(this._progressControle.expAllDir, ProgressBarStyle.Blocks);
     ExtProgrBarInv.Style(this._progressControle.expActualDir, ProgressBarStyle.Blocks);
     ExtProgrBarInv.Style(this._progressControle.expActualFile, ProgressBarStyle.Blocks);
 }
コード例 #3
0
                /// <summary>
                /// Initial controles. Reset TextBoxes and ProgressBars
                /// </summary>
                public void InitialControles()
                {
                    LabelInv.Text(this._progressControle.lblStepText, "");

                    TextBoxInv.Text(this._progressControle.txtCopyStart, "");
                    TextBoxInv.Text(this._progressControle.txtCopyElapsed, "");
                    TextBoxInv.Text(this._progressControle.txtCopyRemainTime, "");

                    this.ResetAllProgressBars(true, true);
                }
コード例 #4
0
            /// <summary>
            /// Set controles for state: CountBusy
            /// </summary>
            internal void SetPRogress_CountBusy(ProgressStore progressStore)
            {
                LabelInv.Text(this._progressControle.lblStepText, Stringtable._0x0016);
                TextBoxInv.Text(this._progressControle.txtCopyElapsed, this.TimeSpanForamt(this._progressControle.ElapsedTime));

                this._setControleValue.SetProgressCluster(this._progressControle.expAllItems, progressStore.TotalItems);
                this._setControleValue.SetProgressCluster(this._progressControle.expAllByte, progressStore.TotalBytes);
                this._setControleValue.SetProgressCluster(this._progressControle.expAllDir, progressStore.DirectroyFiles);
                this._setControleValue.SetProgressCluster(this._progressControle.expActualDir, progressStore.DirectroyFiles);
            }
コード例 #5
0
            /// <summary>
            /// Set controles for state: CountStart
            /// </summary>
            internal void SetProgress_CountStart()
            {
                this._progressControle._progressStart = DateTime.Now;

                this._setControleValue.InitialControles();

                LabelInv.Text(this._progressControle.lblStepText, Stringtable._0x0015);

                DateTime ProgressStart = this._progressControle._progressStart;

                TextBoxInv.Text(this._progressControle.txtCopyStart, ProgressStart.ToString(FORMAT_TIME));
                ExtProgrBarInv.Style(this._progressControle.expAllByte, ProgressBarStyle.Marquee);
                ExtProgrBarInv.Style(this._progressControle.expAllDir, ProgressBarStyle.Marquee);
                ExtProgrBarInv.Style(this._progressControle.expAllItems, ProgressBarStyle.Marquee);
            }
コード例 #6
0
            /// <summary>
            /// Set controles for state: CopyStart
            /// Also set progress start time
            /// </summary>
            internal void SetProgress_CopyStart(ProgressStore progressStore)
            {
                DateTime StartTime = DateTime.Now;

                this._progressControle._progressStart = StartTime;
                // Set controles
                this._setControleValue.InitialControles();
                LabelInv.Text(this._progressControle.lblStepText, Stringtable._0x0018);

                TextBoxInv.Text(this._progressControle.txtCopyStart, StartTime.ToString(FORMAT_TIME));
                if (progressStore.TotalItems.MaxValue == null)
                {
                    ExtProgrBarInv.Style(this._progressControle.expAllByte, ProgressBarStyle.Marquee);
                    ExtProgrBarInv.Style(this._progressControle.expAllDir, ProgressBarStyle.Marquee);
                    this._progressControle.expAllItems.Style = ProgressBarStyle.Marquee;
                }
            }
コード例 #7
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);
            }
コード例 #8
0
            /// <summary>
            /// Set controles for state: CopyBusy
            /// </summary>
            internal void SetProgress_CopyBusy(ProgressStore progressStore)
            {
                LabelInv.Text(this._progressControle.lblStepText, Stringtable._0x0019);
                TextBoxInv.Text(this._progressControle.txtCopyElapsed, this.TimeSpanForamt(this._progressControle.ElapsedTime));
                TextBoxInv.Text(this._progressControle._conclusionDirectoriesTextBox, string.Format(FORMAT_VALUE, progressStore.TotalDirectories.ActualValue));
                TextBoxInv.Text(this._progressControle._conclusionFilesTextBox, string.Format(FORMAT_VALUE, progressStore.TotalFiles.ActualValue));

                this._setControleValue.SetProgressCluster(this._progressControle.expAllItems, progressStore.TotalItems);
                this._setControleValue.SetProgressCluster(this._progressControle.expAllByte, progressStore.TotalBytes);
                this._setControleValue.SetProgressCluster(this._progressControle.expAllDir, progressStore.TotalDirectories);
                this._setControleValue.SetProgressCluster(this._progressControle.expActualDir, progressStore.DirectroyFiles);
                this._setControleValue.SetProgressCluster(this._progressControle.expActualFile, progressStore.FileBytes);

                // Get remaining time if counting was done
                if (progressStore.TotalItems.MaxValue != null && progressStore.TotalItems.MaxValue > 0)
                {
                    TimeSpan RemainingTimeByte = OLKI.Toolbox.Common.Matehmatics.RemainingTime(this._progressControle.ElapsedTime, progressStore.TotalBytes.ActualValue, progressStore.TotalBytes.MaxValue);
                    TimeSpan RemainingTimeItem = OLKI.Toolbox.Common.Matehmatics.RemainingTime(this._progressControle.ElapsedTime, progressStore.TotalItems.ActualValue, progressStore.TotalItems.MaxValue);
                    TimeSpan RemainingTime     = RemainingTimeByte > RemainingTimeItem ? RemainingTimeByte : RemainingTimeItem;
                    TextBoxInv.Text(this._progressControle.txtCopyRemainTime, this.TimeSpanForamt(RemainingTime));
                }
            }
コード例 #9
0
 /// <summary>
 /// Set controles for state: DeleteFinish
 /// </summary>
 internal void SetProgress_DeleteFinish()
 {
     LabelInv.Text(this._progressControle.lblStepText, Stringtable._0x0023);
     this._setControleValue.ResetAllProgressBars(true, true);
 }
コード例 #10
0
 /// <summary>
 /// Set controles for state: CountFinish
 /// </summary>
 internal void SetProgress_CountFinish()
 {
     LabelInv.Text(this._progressControle.lblStepText, Stringtable._0x0017);
     this._setControleValue.ResetAllProgressBars(true, false);
 }