internal void SetMChannel(CTChannel AICardformChannelCT, FormMeasureCT AIParentForm) { m_CardFormChannel = AICardformChannelCT; labelChanneltype.Text = m_CardFormChannel.GetMeasurementType(); labelChannel.Text = m_CardFormChannel.GetMeasurementChannelCaption(); label1.Visible = m_CardFormChannel.MChan.IsADSync; m_ParentForm = AIParentForm; }
private void buttonCTMeasure_Click(object sender, EventArgs e) { try { FormMeasureCT recCT = new FormMeasureCT(this); recCT.ShowDialog(); m_maiDevice.StopMeasure(); m_maiDevice.ClearAllChannelLists(); } catch (Exception x) { m_maiDevice.StopMeasure(); m_maiDevice.ClearAllChannelLists(); MessageBox.Show(x.Message); } }