public void ShowSuccessPopup(bool closable, TimeSpan?closesAfter, string body, string title) { Popup popup = new Popup(PopupType.Success, closable, closesAfter, body, title); Popups[popup] = PopupType.Success; OnShowPopup?.Invoke(popup); }
public void Show(object args = null) { MapButtonClickCallbacks(); Subscribe(); OnShow(args); EnablePanel(); OnShowLate(); OnShowPopup?.Invoke(Type); }
private void MouseShowPopup(System.Windows.Forms.MouseEventArgs args) { System.Drawing.Point e = new System.Drawing.Point(args.X, args.Y); List <Object> dataContext = new List <object>(); foreach (ThreadRow row in Rows) { if (row.Offset <= e.Y && e.Y <= row.Offset + row.Height) { row.OnMouseHover(new Point(e.X, e.Y - row.Offset), Scroll, dataContext); } } OnShowPopup?.Invoke(dataContext); }