public void InitData(OutputColorList colorList, string savedColor)
		{
			ColorChanged = null;
			_colorList = colorList;
			if (!_colorList.Items.Any()) return;
			xtraScrollableControlColors.Controls.Clear();
			var selectedColor = (!String.IsNullOrEmpty(savedColor) ?
				_colorList.Items.FirstOrDefault(c => c.Name.ToLower().Equals(savedColor.ToLower())) :
				null)
				?? _colorList.Items.First();
			var columOrder = 0;
			var rowOrder = 0;
			foreach (var color in _colorList.Items)
			{
				var button = new OutputColorButton();
				button.ColumnOrder = columOrder;
				button.RowOrder = rowOrder;
				button.Text = color.Name;
				button.Height = ButtonHeight;
				button.TextAlignment = eButtonTextAlignment.Center;
				button.ColorTable = eButtonColor.OrangeWithBackground;
				button.Style = eDotNetBarStyle.StyleManagerControlled;
				button.Tag = color;
				button.Checked = color.Name.Equals(selectedColor.Name);
				button.Click += (sender, e) =>
				{
					var clickedButton = (OutputColorButton)sender;
					if (clickedButton.Checked) return;
					foreach (var colorButton in xtraScrollableControlColors.Controls.OfType<OutputColorButton>())
						colorButton.Checked = false;
					clickedButton.Checked = true;
				};
				button.CheckedChanged += (sender, e) =>
				{
					var clickedButton = (OutputColorButton)sender;
					if (!clickedButton.Checked) return;
					ColorChanged?.Invoke(sender, e);
				};
				xtraScrollableControlColors.Controls.Add(button);
				if (columOrder > 0)
				{
					columOrder = 0;
					rowOrder++;
				}
				else
					columOrder++;
			}
			ResizeButtons();
		}
        public void InitData(OutputColorList colorList, string savedColor)
        {
            ColorChanged = null;
            _colorList   = colorList;
            if (!_colorList.Items.Any())
            {
                return;
            }
            xtraScrollableControlColors.Controls.Clear();
            var selectedColor = (!String.IsNullOrEmpty(savedColor) ?
                                 _colorList.Items.FirstOrDefault(c => c.Name.ToLower().Equals(savedColor.ToLower())) :
                                 null)
                                ?? _colorList.Items.First();
            var columOrder = 0;
            var rowOrder   = 0;

            foreach (var color in _colorList.Items)
            {
                var button = new OutputColorButton();
                button.ColumnOrder   = columOrder;
                button.RowOrder      = rowOrder;
                button.Text          = color.Name;
                button.Height        = (Int32)(ButtonHeight * Utilities.GetScaleFactor(CreateGraphics().DpiX).Height);
                button.TextAlignment = eButtonTextAlignment.Center;
                button.ColorTable    = eButtonColor.OrangeWithBackground;
                button.Style         = eDotNetBarStyle.StyleManagerControlled;
                button.Tag           = color;
                button.Checked       = color.Name.Equals(selectedColor.Name);
                button.Click        += (sender, e) =>
                {
                    var clickedButton = (OutputColorButton)sender;
                    if (clickedButton.Checked)
                    {
                        return;
                    }
                    foreach (var colorButton in xtraScrollableControlColors.Controls.OfType <OutputColorButton>())
                    {
                        colorButton.Checked = false;
                    }
                    clickedButton.Checked = true;
                };
                button.CheckedChanged += (sender, e) =>
                {
                    var clickedButton = (OutputColorButton)sender;
                    if (!clickedButton.Checked)
                    {
                        return;
                    }
                    ColorChanged?.Invoke(sender, e);
                };
                xtraScrollableControlColors.Controls.Add(button);
                if (columOrder > 0)
                {
                    columOrder = 0;
                    rowOrder++;
                }
                else
                {
                    columOrder++;
                }
            }
            ResizeButtons();
        }