Пример #1
0
        private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // As the user if they are sure
            DialogResult yesNoResult = MessageBox.Show("This will overwrite the current spike filter. Do you want to proceed?",
                                                       "Hardware Settings", MessageBoxButtons.YesNo);

            // Proceed
            if (yesNoResult == DialogResult.Yes)
            {
                spikeDet.Close();

                HardwareSettings nc_s = new HardwareSettings();
                nc_s.ShowDialog();
                updateSettings();

                setSpikeDetectorSettings();
            }
        }
Пример #2
0
        private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // As the user if they are sure
            DialogResult yesNoResult = MessageBox.Show("This will overwrite the current spike filter. Do you want to proceed?",
                "Hardware Settings", MessageBoxButtons.YesNo);

            // Proceed
            if (yesNoResult == DialogResult.Yes)
            {

                spikeDet.Close();

                HardwareSettings nc_s = new HardwareSettings();
                nc_s.ShowDialog();
                updateSettings();

                setSpikeDetectorSettings();
            }
        }