private void SetStateInTB() { if (ownerForm == null) { return; } ThumbnailProgressState thmState = ThumbnailProgressState.Normal; if (!showInTaskbar) { thmState = ThumbnailProgressState.NoProgress; } else if (Style == ProgressBarStyle.Marquee) { thmState = ThumbnailProgressState.Indeterminate; } else if (m_State == ProgressBarState.Error) { thmState = ThumbnailProgressState.Error; } else if (m_State == ProgressBarState.Pause) { thmState = ThumbnailProgressState.Paused; } Windows7Taskbar.SetProgressState(ownerForm.Handle, thmState); }
private void SetValueInTB() { if (showInTaskbar) { ulong maximum = (ulong)(base.Maximum - base.Minimum); ulong current = (ulong)(Value - base.Minimum); Windows7Taskbar.SetProgressValue(ownerForm.Handle, current, maximum); } }
private void SetValueInTB() { if (showInTaskbar) { ulong maximum = (ulong)(Maximum - Minimum); ulong progress = (ulong)(Value - Minimum); Windows7Taskbar.SetProgressValue(ownerForm.Handle, progress, maximum); } }