internal void calibrationInProgressGUI() { // InvokeRequired required compares the thread ID of the // calling thread to the thread ID of the creating thread. // If these threads are different, it returns true. if (m_parent.startCalibration.InvokeRequired || m_parent.RecordStopButton.InvokeRequired || m_parent.resetCalibration.InvokeRequired) { calibrationInProgressGUICallback d = new calibrationInProgressGUICallback(calibrationInProgressGUI); m_parent.startCalibration.Invoke(d, new object[] { }); } else { m_parent.startCalibration.Enabled = false; m_parent.RecordStopButton.Enabled = true; m_parent.resetCalibration.Enabled = false; } }
internal void calibrationInProgressGUI() { // InvokeRequired required compares the thread ID of the // calling thread to the thread ID of the creating thread. // If these threads are different, it returns true. if (m_parent.startCalibration.InvokeRequired || m_parent.RecordStopButton.InvokeRequired || m_parent.resetCalibration.InvokeRequired) { calibrationInProgressGUICallback d = new calibrationInProgressGUICallback(calibrationInProgressGUI); m_parent.startCalibration.Invoke(d, new object[] { }); } else { m_parent.startCalibration.Enabled = false; m_parent.RecordStopButton.Enabled = true; m_parent.resetCalibration.Enabled = false; } }