public bool AutoToggleIfNeeded() { bool oldEnabled = IsEnabled; EnabledState = enabledState; return ( oldEnabled != IsEnabled ); }