示例#1
0
        public static Color GetColor(this TrialColor color)
        {
            switch (color)
            {
            case TrialColor.Blue:  return(Color.blue);

            case TrialColor.Green: return(Color.green);

            case TrialColor.Red:   return(Color.red);

            default:               return(Color.black);
            }
        }
示例#2
0
 public TrialProperties(TrialText text, TrialColor color, TrialSound sound)
 {
     this.text  = text;
     this.color = color;
     this.sound = sound;
 }