private void buttonConfigCT0_Click(object sender, EventArgs e) { FormConfigPeriodCounter fcpc = new FormConfigPeriodCounter(); fcpc.Text = "Counter Channel 0 Configuration"; fcpc.SingalEdge = (int)m_ct0SignalEdge; fcpc.Reslution = (int)m_ct0Resolution; if (fcpc.ShowDialog() != DialogResult.OK) return; m_ct0SignalEdge = (SignalEdge)fcpc.SingalEdge; m_ct0Resolution = (CounterResolution)fcpc.Reslution ; }
private void buttonConfigCT1_Click(object sender, EventArgs e) { FormConfigPeriodCounter fcpc = new FormConfigPeriodCounter(); fcpc.Text = "Counter Channel 1 Configuration"; fcpc.SingalEdge = (int)m_ct1SignalEdge; fcpc.Reslution = (int)m_ct1Resolution; if (fcpc.ShowDialog() != DialogResult.OK) { return; } m_ct1SignalEdge = (SignalEdge)fcpc.SingalEdge; m_ct1Resolution = (CounterResolution)fcpc.Reslution; }