Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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.DblValueChanged -= SliderControl_DblValueChanged;
                    currSlider.dblValue         = dblValue;
                    currSlider.DblValueChanged += SliderControl_DblValueChanged;
                }

                if (ctrl.HasChildren)
                {
                    UpdateSliderControls(ctrl);
                }
            }
        }