Beispiel #1
0
 /// <summary>
 /// Update the overall health of the transfer. The overall health
 /// is the aggregate error status of the transfer from the beginning
 /// to the present.
 /// </summary>
 private void UpdateOverallHealth()
 {
     overallHealth.Visible = true;
     SafeRetry.Health health = SafeRetry.GetOverallHealth();
     overallHealth.ForeColor = health == SafeRetry.Health.Green ?
                               Color.Green : health == SafeRetry.Health.Yellow ?
                               Color.DarkOrange : health == SafeRetry.Health.Red ?
                               Color.DarkRed : Color.Green;
 }
Beispiel #2
0
 /// <summary>
 /// Update the recent health of the transfer. The recent health is
 /// the error status of the transfer operation within the current
 /// "recent" window specified by the SafeRetry instance used by
 /// the TransferUtils object.
 /// </summary>
 private void UpdateRecentHealth()
 {
     recentHealth.Visible = true;
     SafeRetry.Health health = SafeRetry.GetRecentHealth();
     recentHealth.ForeColor = health == SafeRetry.Health.Green ?
                              Color.Green : health == SafeRetry.Health.Yellow ?
                              Color.DarkOrange : health == SafeRetry.Health.Red ?
                              Color.DarkRed : Color.Green;
 }