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