public void OnClickWidget(object o, EventArgs e) { if (_widgetPopUp == null) { throw new NullReferenceException("Popup is null"); } _widgetPopUp.PopUp(); }