private void mEVRStreamFilterSlider_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.setFilterParametr( mEVROutputNode, lindex, lvalue, true); } }
private void setFilterParametr(uint aParametrIndex, int aNewValue, bool aIsEnabled) { if (_EVROutputAdapter == null || _IEVRStreamControl == null) { return; } _IEVRStreamControl.setFilterParametr( _EVROutputAdapter.Node, aParametrIndex, aNewValue, aIsEnabled); }