Ejemplo n.º 1
0
 private Color getStatusColor(TrainingEnd value)
 {
     if (value == TrainingEnd.Break)
     {
         return(Color.Red);
     }
     else if (value == TrainingEnd.Complete)
     {
         return(Color.Green);
     }
     return(Color.Blue);
 }
Ejemplo n.º 2
0
 public virtual void SetData(DateTime startDate, DateTime?endDate, TrainingEnd trainingEnd)
 {
     this.StartDate   = startDate;
     this.EndDate     = endDate;
     this.TrainingEnd = trainingEnd;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Called when [training end].
 /// </summary>
 /// <param name="history">The history.</param>
 /// <param name="duration">The duration.</param>
 protected void OnTrainingEnd(History history, long duration)
 {
     TrainingEnd?.Invoke(this, new TrainingEndEventArgs(history, duration));
 }
Ejemplo n.º 4
0
 protected void OnTrainigEnd(float[] inputs, float answer, float guess, float error)
 {
     TrainingEnd?.Invoke(inputs, answer, guess, error);
 }