private void EnableButtons(bool enable) { if (OKButton != null) OKButton.Enabled = enable; if (ApplyButton != null) ApplyButton.Enabled = enable; }