private void buttonApply_Click(object sender, EventArgs e)
 {
     if (
         Double.TryParse(this.toolStripTextBoxInternalResistance.Text, out _data.res) &&
         Double.TryParse(this.textBoxPotential1.Text, out _data.p_awg) &&
         Double.TryParse(this.textBoxResistor.Text, out _data.r_ref) &&
         Double.TryParse(this.textBoxPotentialOsc1.Text, out _data.p_osc1) &&
         Double.TryParse(this.textBoxPotentialOsc2.Text, out _data.p_osc2) &&
         Double.TryParse(this.textBoxCurrent.Text, out _data.c) &&
         Double.TryParse(this.textBoxPotential2.Text, out _data.p_slope_awg) &&
         Double.TryParse(this.textBoxPotentialSlopeOsc1.Text, out _data.p_slope_osc1) &&
         Double.TryParse(this.textBoxPotentialSlopeOsc2.Text, out _data.p_slope_osc2) &&
         Double.TryParse(this.textBoxCurrentSlope.Text, out _data.c_slope)
         )
     {
         _ps.SetCalibrationData(
             _data.p_awg,
             (_data.p_osc2 - _data.p_osc1),
             (_data.c - _data.p_osc1 * 1000 / _data.r_ref) * ((1 / (double)Potentiostat.rangeCurrent.Range20mA) + _data.res / 1000000),
             _data.p_slope_awg / 1000.0,
             _data.p_slope_osc2 / _data.p_slope_osc1,
             (1.0)// / (1 + 0.5 / (1000000 / (double)Potentiostat.rangeCurrent.Range20mA))) // * (r_ref / 1000.0)),
             );
     }
     else
     {
         MessageBox.Show(this, "Input number(s)!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }