/* Deactivate the control and deregister the callback. */ private void Reset() { if (m_hNode.IsValid && m_hCallbackHandle.IsValid) { try { GenApi.NodeDeregisterCallback(m_hNode, m_hCallbackHandle); } catch { /* Ignore. The control is about to be disabled. */ } } m_hNode.SetInvalid(); m_hCallbackHandle.SetInvalid(); comboBox.Enabled = false; labelName.Enabled = false; }
/* Deactivate the control and deregister the callback. */ private void Reset() { if (m_hNode.IsValid && m_hCallbackHandle.IsValid) { try { GenApi.NodeDeregisterCallback(m_hNode, m_hCallbackHandle); } catch { /* Ignore. The control is about to be disabled. */ } } m_hNode.SetInvalid(); m_hCallbackHandle.SetInvalid(); slider.Enabled = false; //labelMin.Enabled = false; //labelMax.Enabled = false; labelName.Enabled = false; //labelCurrentValue.Enabled = false; textBox1.Enabled = false; }