Esempio n. 1
0
        private void PrivateDefault()
        {
            this.AccountedStimulCount  = 100;
            this.TrainingStimulCount   = 5;
            this.StimulSize            = 5;
            this.StimulOnTime          = 2;
            this.StimulMinTime         = 2.0f;
            this.StimulMaxTime         = 4.0f;
            this.StimulShape           = StimulusShape.Circle;
            this.Implementation        = ImplementationType.Software;
            this.ShowEndTrainingPrompt = true;

            this.StimulusColor   = Color.Green;
            this.BackgroundColor = Color.Black;

            this.UseReadyKey = false;
            this.ReadyKey    = ActionKey.None;
            this.ReactionKey = ActionKey.Space;

            RuntimeErrorThreshold = 5;
        }
Esempio n. 2
0
 /// <summary>
 /// Копирует настройки из объекта source
 /// </summary>
 /// <param name="source"></param>
 public override void CopyFrom(IMethodSettings source)
 {
     base.CopyFrom(source);
     if (source is TestSettings src)
     {
         AccountedStimulCount  = src.AccountedStimulCount;
         TrainingStimulCount   = src.TrainingStimulCount;
         StimulSize            = src.StimulSize;
         StimulMinTime         = src.StimulMinTime;
         StimulMaxTime         = src.StimulMaxTime;
         StimulOnTime          = src.StimulOnTime;
         StimulShape           = src.StimulShape;
         Implementation        = src.Implementation;
         StimulusColor         = src.StimulusColor;
         BackgroundColor       = src.BackgroundColor;
         RuntimeErrorThreshold = src.RuntimeErrorThreshold;
         UseReadyKey           = src.UseReadyKey;
         ReadyKey              = src.ReadyKey;
         ReactionKey           = src.ReactionKey;
         ShowEndTrainingPrompt = src.ShowEndTrainingPrompt;
     }
 }