Пример #1
0
 public static void SetValue(double progressValue, double progressMax)
 {
     if (TaskbarSupported)
     {
         TaskbarInstance.SetProgressValue(GetConsoleHandle(), (ulong)progressValue, (ulong)progressMax);
     }
 }
Пример #2
0
 /// <summary>
 /// Set progress bar value in the taskbar item of your application
 /// </summary>
 /// <param name="Handle">The associated handle</param>
 /// <param name="value">The current value</param>
 /// <param name="max">The maximum value</param>
 public void SetProgressValue(IntPtr Handle, double value, double max)
 {
     taskbar.SetProgressValue(Handle, (ulong)value, (ulong)max);
 }