private void SubscribeEvents() { // Always unsubscribe events to ensure we don't subscribe twice this.UnSubscribeEvents(); if (this.button != null) { this.button.Click += this.OnButtonClick; } }