Пример #1
0
        private void setEVRStreamOutputFeatures(uint aIndex, int aValue)
        {
            if (_EVROutputAdapter == null || _IEVRStreamControl == null)
            {
                return;
            }

            _IEVRStreamControl.setOutputFeatureParametr(
                _EVROutputAdapter.Node,
                aIndex,
                aValue);
        }
        private void mEVRStreamOutputFeaturesSlider_ValueChanged(object sender, RoutedEventArgs e)
        {
            var lslider = e.OriginalSource as Slider;

            if (lslider == null)
            {
                return;
            }

            if (!lslider.IsFocused)
            {
                return;
            }

            var lParametrNode = lslider.Tag as XmlNode;

            if (lParametrNode == null)
            {
                return;
            }

            var lAttr = lParametrNode.Attributes["Index"];

            if (lAttr == null)
            {
                return;
            }

            uint lindex = uint.Parse(lAttr.Value);

            int lvalue = (int)lslider.Value;

            if (mIEVRStreamControl != null)
            {
                mIEVRStreamControl.setOutputFeatureParametr(
                    mEVROutputNode,
                    lindex,
                    lvalue);
            }
        }