/// <summary> /// Update the Apply button state /// </summary> private void UpdateButtonState() { if (editor != null) { buttonApply.Enabled = editor.IsDirty(); } }