private void SliderControl_DblValueChanged(object sender, EventArgs e) { object pFrame; MNumericSliderAdjust SliderControl = sender as MNumericSliderAdjust; m_pKey.KeyAdjustSet(SliderControl.AdjustType, SliderControl.dblValue, out pFrame); UpdatePicture(pFrame); }
void UpdateSliderControls(Control parent) { double dblValue = 0; foreach (Control ctrl in parent.Controls) { if (ctrl is MNumericSliderAdjust) { MNumericSliderAdjust currSlider = ctrl as MNumericSliderAdjust; m_pKey.KeyAdjustGet(currSlider.AdjustType, out dblValue); currSlider.dblValue = dblValue; } if (ctrl.HasChildren) { UpdateSliderControls(ctrl); } } }