public ParameterTogglePanel(CompileParameter cp) { AutoSize = true; RowCount = 1; GrowStyle = TableLayoutPanelGrowStyle.AddColumns; Margin = new Padding(0, 0, 10, 0); Parameter = cp; CheckBox = new CheckBox { Text = cp.Name, Checked = cp.Enabled, Width = 135, Height = 17, Margin = new Padding(3, 3, 0, 3) }; CheckBox.CheckedChanged += (s, e) => OnValueChanged(); Controls.Add(CheckBox); AddControls(); }
public ParameterTogglePanel(CompileParameter cp) { AutoSize = true; RowCount = 1; GrowStyle = TableLayoutPanelGrowStyle.AddColumns; Margin = new Padding(0, 0, 10, 0); Parameter = cp; CheckBox = new CheckBox { Text = cp.Name, Checked = cp.Enabled, Width = 135, Height = 17, Margin = new Padding(3, 3, 0, 3) }; CheckBox.CheckedChanged += (s,e) => OnValueChanged(); Controls.Add(CheckBox); AddControls(); }