private void CBAddButton_CheckedChanged(object sender, EventArgs e) { if (CBAddButton.Checked) { UncheckOtherCheckboxes(sender); Button control = new Button(graphicsControl1, graphicsControl1.MainDialog, data); graphicsControl1.Create(control); } else { CancelIfNoneChecked(); } }
private void CBAddButton_CheckedChanged(object sender, EventArgs e) { if (CBAddButton.Checked) { UncheckOtherCheckboxes(sender); Button control = new Button(graphicsControl1, graphicsControl1.MainDialog, data); graphicsControl1.Create(control); } else CancelIfNoneChecked(); }