Exemplo n.º 1
0
 /// <summary>Sets the type and state of the progress indicator displayed on a taskbar button.</summary>
 /// <param name="parent">
 /// The window in which the progress of an operation is being shown. This window's associated taskbar button will display the
 /// progress bar.
 /// </param>
 /// <param name="status">The current state of the progress button. Specify only one of the enum values.</param>
 public static void SetProgressState(IWin32Window parent, TaskbarButtonProgressState status)
 {
     if (parent == null)
     {
         throw new ArgumentNullException(nameof(parent));
     }
     SetProgressState(parent.Handle, status);
 }
Exemplo n.º 2
0
 /// <summary>Sets the type and state of the progress indicator displayed on a taskbar button.</summary>
 /// <param name="hwnd">
 /// The window in which the progress of an operation is being shown. This window's associated taskbar button will display the
 /// progress bar.
 /// </param>
 /// <param name="status">The current state of the progress button. Specify only one of the enum values.</param>
 public static void SetProgressState(HWND hwnd, TaskbarButtonProgressState status)
 {
     Validate7OrLater();
     taskbar4?.SetProgressState(hwnd, (TBPFLAG)status);
 }