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); } } }