Exemple #1
0
 public static void SetTaskbarProgressMode(this IWin32Window window, TaskbarProgressMode mode)
 {
     if (Instance != null)
     {
         Marshal.ThrowExceptionForHR(
             Instance.SetProgressState(window.Handle, (TBPFLAG)mode));
     }
 }
Exemple #2
0
        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;
        }
Exemple #3
0
 public static void SetTaskbarProgressMode(this IWin32Window window, TaskbarProgressMode mode)
 {
     if (Instance != null)
         Marshal.ThrowExceptionForHR(
             Instance.SetProgressState(window.Handle, (TBPFLAG)mode));
 }