public Configure_Potentiostat(Potentiostat ps)
        {
            InitializeComponent();

            _ps = ps;

            _data = new configration_data();
        }
        private void buttonReset_Click(object sender, EventArgs e)
        {
            DialogResult r = MessageBox.Show
                             (
                "Are you sure to reset the configuration data?",
                "Warning",
                MessageBoxButtons.YesNo,
                MessageBoxIcon.Warning
                             );

            if (r == DialogResult.No)
            {
                return;
            }

            _data = Reset();
            UpdateUI();
        }