Exemplo n.º 1
0
 void IProgressIndicationService.Begin(string displayName, int minProgress, int maxProgress, int currentProgress)
 {
     _Indicator.Properties.Minimum   = minProgress;
     _Indicator.Properties.Maximum   = maxProgress;
     _Indicator.Properties.ShowTitle = true;
     _Indicator.EditValue            = currentProgress;
     _Indicator.Refresh();
     _Indicator.Show();
 }
Exemplo n.º 2
0
        public void NextItem(string Title)
        {
            ProgressBarControl.Dispatcher.Invoke(() =>
            {
                ProgressBarControl.Value++;
                string perc = (int)(ProgressBarControl.Value / mTotalItems * 100) + "%";
                ProgressBarTextControl.Text = mActionTitle + " - " + Title + " " + perc;
            });

            ProgressBarControl.Refresh();
            ProgressBarTextControl.Refresh();
        }
Exemplo n.º 3
0
 /// <summary>
 /// Stops the busy bar.
 /// </summary>
 private void StopBusyBar()
 {
     ProgressBarControl.Enabled = false;
     ProgressBarControl.Refresh();
 }
Exemplo n.º 4
0
        // ------------------------------------------------------------------
        #endregion

        #region Busy bar handling.
        // ------------------------------------------------------------------

        /// <summary>
        /// Starts the busy bar.
        /// </summary>
        private void StartBusyBar()
        {
            ProgressBarControl.Enabled = true;
            ProgressBarControl.Refresh();
        }