예제 #1
0
 private void SetProgress(int value)
 {
     if (this.InvokeRequired)
     {
         DSetProgress d = new DSetProgress(SetProgress);
         this.Invoke(d, new object[] { value });
     }
     else
     {
         if (TaskbarManager.IsPlatformSupported)
             TaskbarManager.Instance.SetProgressValue(value, 100);
     }
 }
예제 #2
0
 public void SetProgress(int value)
 {
     if (this.InvokeRequired)
     {
         DSetProgress d = new DSetProgress(SetProgress);
         this.Invoke(d, new object[] { value });
     }
     else
     {
         this.toolStripProgressBar1.Value = value;
         if(TaskbarManager.IsPlatformSupported)
             TaskbarManager.Instance.SetProgressValue(value, this.toolStripProgressBar1.Maximum);
     }
 }