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); } }
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); } }