private void btnApplyDisturbance_Click(object sender, EventArgs e)
        {
            string type = "";

            if (rbConstant.Checked == true)
            {
                type = "constant";
            }
            if (rbTransientDecrease.Checked == true)
            {
                type = "transient";
            }
            if (rbSinusoid.Checked == true)
            {
                type = "sinusoid";
            }
            if (rbInstant.Checked == true)
            {
                type = "instant";
            }

            double duration              = Convert.ToDouble(nudDuration.Value);
            double frequency             = Convert.ToDouble(nudFrequency.Value);
            double amplitude_disturbance = Convert.ToDouble(nudAmplitude.Value);
            double time_const            = Convert.ToDouble(nudTimeConst.Value);
            string target_state          = tbTargetState.Text;

            Disturbance = new DisturbanceModel(target_state, type, duration, amplitude_disturbance, time_const, frequency);
        }
 public void UpdatePerturbationLabels(DisturbanceModel Disturbance)
 {
     labelDebug.Text       = "Time left: " + Math.Round(Disturbance.time_left, 1);
     labelDisturbance.Text = "Disturbances: \n" + Math.Round(Disturbance.value_disturbance, 2);
 }