internal void ShowPopupForm() { if (activeUs == null) { return; } var lv = activeUs.listView; if (lv.SelectedIndices.Count > 0) { if (popupForm == null) { popupForm = new PopupForm(); } var item = lv.Items[lv.SelectedIndices[0]]; var point = lv.PointToScreen(item.Bounds.Location); popupForm.Show(this, "test", point.X, point.Y + item.Bounds.Height); } }
internal void ShowPopupForm() { if (activeUs == null) return; var lv = activeUs.listView; if (lv.SelectedIndices.Count > 0) { if (popupForm == null) { popupForm = new PopupForm(); } var item = lv.Items[lv.SelectedIndices[0]]; var point = lv.PointToScreen(item.Bounds.Location); popupForm.Show(this, "test", point.X, point.Y + item.Bounds.Height); } }