예제 #1
0
        private void frequenzToolStripMenuItem_Click(object sender, EventArgs e)
        {
            _frequencyInputDialog = new FrequencyInputDialog(_microController.Frequency.ToString());
            var dialogResult = _frequencyInputDialog.ShowDialog();

            if (dialogResult == DialogResult.OK)
            {
                _microController.Frequency = double.Parse(_frequencyInputDialog.Frequency);
            }
        }
예제 #2
0
 private void textBox1_Click(object sender, EventArgs e)
 {
     if (funcActive1.Enabled && funcActive1.Checked)
     {
         _frequencyInputDialog = new FrequencyInputDialog();
         var dialogResult = _frequencyInputDialog.ShowDialog();
         if (dialogResult == DialogResult.OK)
         {
             _microController.FuncGen.Frequency = double.Parse(_frequencyInputDialog.Frequency);
             funcGenFreqTextBox.Text            = _frequencyInputDialog.Frequency;
         }
     }
 }