public void SetCompleted() { this.CurrentFile = ""; this.Speed = -1; state = AgentCopyState.Complete; UpdateProgressLabel(); }
public void NeedMoreSpace() { state = AgentCopyState.Paused; UpdateProgressLabel(); }
/// <summary> /// Установить режим загрузки. /// </summary> public void SetPlaying() { state = AgentCopyState.InProgress; UpdateProgressLabel(); }
/// <summary> /// Включить режим паузы. /// </summary> public void SetPaused() { state = AgentCopyState.Paused; UpdateProgressLabel(); }
/// <summary> /// Остановить копирование. /// </summary> public void SetStopped() { this.state = AgentCopyState.Stopped; this.progressBar.Value = 0; UpdateProgressLabel(); }