private void OnPopup(uint time) { StationViewPopupHandler handler = Popup; if (handler != null) { handler(this, new StationViewPopupArgs(time)); } }
protected override bool OnButtonPressEvent(Gdk.EventButton evnt) { if (evnt.Window != BinWindow || evnt.Button != 3) { return(base.OnButtonPressEvent(evnt)); } bool ret = base.OnButtonPressEvent(evnt); StationViewPopupHandler handler = Popup; if (handler != null) { StationViewPopupArgs args = new StationViewPopupArgs(); args.Time = evnt.Time; handler(this, args); } return(ret); }