private void OnButtonPressed(int button) { if (this.ButtonPressed != null) { this.ButtonPressed(button, EventArgs.Empty); } }