private void UpdateButtonText() { button.Text = AssociatedEvent != null?AssociatedEvent.ToString() : "error"; xButton.Visible = false; }
private void UpdateButtonText() { button.Text = AssociatedEvent.ToString(); xButton.Visible = false; }