private void textBox2_TextChanged(object sender, System.EventArgs e)
        {
            line1.BeginUpdate();
            double factor = Convert.ToDouble(textBox2.Text);

            line1.EndUpdate();
            downsampling1.Tolerance = factor;
            label4.Text             = "Reduced data size :" + downsampling1.ReducedSize.ToString();
        }