public void OnToggled(bool toggleStatus)
        {
            int red = redButton.Checked ? 255 : 0;
            int green = greenButton.Checked ? 255 : 0;
            int blue = blueButton.Checked ? 255 : 0;

            color = new QColor (red, green, blue);
            var str = color.Name();
            string sheet = String.Format ( "QWidget {{background-color:{0} }}", str);
            colorBoxWidget.StyleSheet = sheet;
        }
        public void OnToggled(bool toggleStatus)
        {
            int red   = redButton.Checked ? 255 : 0;
            int green = greenButton.Checked ? 255 : 0;
            int blue  = blueButton.Checked ? 255 : 0;

            color = new QColor(red, green, blue);
            var    str   = color.Name();
            string sheet = String.Format("QWidget {{background-color:{0} }}", str);

            colorBoxWidget.StyleSheet = sheet;
        }
        public void OnToggled(bool @checked)
        {
            int red   = _color.Red;
            int green = _color.Green;
            int blue  = _color.Blue;

            if (_redButton.Checked)
            {
                red = 255;
            }
            else
            {
                red = 0;
            }

            if (_greenButton.Checked)
            {
                green = 255;
            }
            else
            {
                green = 0;
            }

            if (_blueButton.Checked)
            {
                blue = 255;
            }
            else
            {
                blue = 0;
            }

            _color = new QColor(red, green, blue);

            string sheet = System.String.Format("QWidget {{ background-color: {0} }}", _color.Name());

            _square.StyleSheet = sheet;
        }