Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JMLevelsSlider"/> class.
        /// </summary>
        /// <param name="color">Color of the slider's body</param>
        /// <param name="value">Initial value of the slider</param>
        /// <param name="container">Object that contains this slider</param>
        public JMLevelsSlider(Color color, int value, JMLevelsSliderContainer container)
        {
            this.maximumValue = 255;

            this.Enabled = this.AcceptMouseInput = true;

            this.brush = new SolidBrush(color);

            this.Value = value;

            this.container = container;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JMLevelsDisplay"/> class.
        /// </summary>
        public JMLevelsDisplay()
        {
            this.ControlGap = 2;
            this.size       = new Size();
            this.enabled    = true;

            this.sliders     = new JMLevelsSliderContainer();
            this.levelsGraph = new JMLevelsGraph();

            this.sliders.OnRefresh      += this.Refresh;
            this.sliders.OnValueChanged += this.SlidersValueChanged;
        }