示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }