public override void ButtonClicked(PropertyEntryButton button) { if (button == PropertyEntryButton.check) { int cs = CheckState; if (cs != 2) { cs = 1 - cs; } CheckState = cs; propertyPage?.Refresh(this); CheckStateChangedEvent?.Invoke(labelText, ( CheckState)cs); } }
public void checkStateChanged(CheckStateChangedEvent event) { var lib = (ProjectLibrary)event.getElement(); lib.setEnabled(event.getChecked());