Пример #1
0
 void UpdateProgressBar()
 {
     if (mp.TaskbarProgress && Taskbar != null)
     {
         Taskbar.SetValue(mp.get_property_number("time-pos"), mp.Duration.TotalSeconds);
     }
 }
Пример #2
0
        private void ShowProgress(int value, int max, Taskbar.TaskbarStates status)
        {
            if (status == Taskbar.TaskbarStates.NoProgress)
            {
                Taskbar.SetState(this.Handle, Taskbar.TaskbarStates.NoProgress);
                return;
            }

            Taskbar.SetValue(this.Handle, value, max);
            Taskbar.SetState(this.Handle, status);
        }
Пример #3
0
 void CreateOverlay()
 {
     Taskbar.SetOverlayIcon(m_host.MainWindow.Handle, Properties.Resources.bird.Handle, PLEASANT_PASSWORD_SERVER);
     Taskbar.SetValue(m_host.MainWindow.Handle, 100, 100);
     Taskbar.SetState(m_host.MainWindow.Handle, Taskbar.TaskbarStates.Error);
 }