Exemplo n.º 1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="UpDownButtons" /> class.
        /// </summary>
        public UpDownButtons()
        {
            Name = "UpDownButtons";
            Size = new Size(16, 24);

            _upButton = new UpDownButton
            {
                IsUp = true,
                Width = Width,
                Height = Height / 2,
                Location = Point.Empty
            };
            _downButton = new UpDownButton
            {
                IsUp = false,
                Width = Width,
                Height = Height / 2,
                Location = new Point(0, Height / 2)
            };

            Layout += OnLayout;

            Controls.Add(_upButton);
            Controls.Add(_downButton);
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="UpDownButtons" /> class.
        /// </summary>
        public UpDownButtons()
        {
            Name = "UpDownButtons";
            Size = new Size(16, 24);

            _upButton = new UpDownButton
            {
                IsUp     = true,
                Width    = Width,
                Height   = Height / 2,
                Location = Point.Empty
            };
            _downButton = new UpDownButton
            {
                IsUp     = false,
                Width    = Width,
                Height   = Height / 2,
                Location = new Point(0, Height / 2)
            };

            Layout += OnLayout;

            Controls.Add(_upButton);
            Controls.Add(_downButton);
        }