private Button AddChoice(string localizedLabel, string localizedTooltip, bool enabled, EventHandler clickHandler,
int row)
{
var button = new Button();
button.Anchor = AnchorStyles.Top | AnchorStyles.Left;
button.Width = _templateButton.Width;
button.Height = _templateButton.Height;
button.Font = new Font(StringCatalog.LabelFont.FontFamily, _templateButton.Font.Size,
_templateButton.Font.Style);
button.Image = _templateButton.Image;
button.ImageAlign = ContentAlignment.MiddleLeft;
button.Click += clickHandler;
button.Text = " " + localizedLabel;
button.FlatAppearance.BorderSize = _templateButton.FlatAppearance.BorderSize;
button.ForeColor = _templateButton.ForeColor;
button.FlatStyle = _templateButton.FlatStyle;
button.ImageAlign = _templateButton.ImageAlign;
button.TextImageRelation = _templateButton.TextImageRelation;
button.UseVisualStyleBackColor = _templateButton.UseVisualStyleBackColor;
button.Enabled = enabled;
toolTip1.SetToolTip(button, localizedTooltip);
tableLayoutPanel2.Controls.Add(button);
tableLayoutPanel2.SetRow(button, row);
tableLayoutPanel2.SetColumn(button, 0);
return button;
}