public static void SetTaskbarProgressMode(this IWin32Window window, TaskbarProgressMode mode) { if (Instance != null) { Marshal.ThrowExceptionForHR( Instance.SetProgressState(window.Handle, (TBPFLAG)mode)); } }
internal TaskbarProgress(Player player) { _base = player; if (!Player._taskbarProgressEnabled) { Player.TaskbarInstance = (TaskbarIndicator.ITaskbarList3) new TaskbarIndicator.TaskbarInstance(); Player._taskbarProgressEnabled = true; } _taskbarItems = new List <Form>(4); _progressMode = TaskbarProgressMode.Progress; _base._lastError = Player.NO_ERROR; }
public static void SetTaskbarProgressMode(this IWin32Window window, TaskbarProgressMode mode) { if (Instance != null) Marshal.ThrowExceptionForHR( Instance.SetProgressState(window.Handle, (TBPFLAG)mode)); }