private void UpdateTotalPercentage(int themePercentage)
        {
            int numRemaining = ThemeManager.importMode ? importQueue.Count : downloadQueue.Count;
            int percentage   = ((numJobs - numRemaining) * 100 + themePercentage) / numJobs;

            progressBar1.Value = percentage;
            TaskbarProgress.SetValue(this.Handle, percentage, 100);
        }
Esempio n. 2
0
        private void UpdateTotalPercentage(int themePercentage)
        {
            int percentage = ((numJobs - importQueue.Count) * 100 + themePercentage) / numJobs;

            progressBar1.Invoke(new Action(() =>
            {
                progressBar1.Value = percentage;
                progressBar1.Refresh();
                TaskbarProgress.SetValue(this.Handle, percentage, 100);
            }));
        }
        private void UpdateTotalPercentage(int themePercentage)
        {
            int numRemaining = ThemeManager.importMode ? importQueue.Count : downloadQueue.Count;
            int percentage   = ((numJobs - numRemaining) * 100 + themePercentage) / numJobs;

            stopwatch.Start();
            progressBar1.Invoke(new Action(() =>
            {
                progressBar1.Value = percentage;
                progressBar1.Refresh();
                TaskbarProgress.SetValue(this.Handle, percentage, 100);
            }));
        }
 private void UpdatePercentage(int percentage)
 {
     progressBar1.Value = percentage;
     progressBar1.Refresh();
     TaskbarProgress.SetValue(this.Handle, percentage, 100);
 }