Exemple #1
0
        public void SetSubItemText(int rowIndex, int columnIndex, string subItemText)
        {
            SUIListViewItem    slvitem = GetItemByIndex(rowIndex);
            SUIListViewSubitem subItem = slvitem.GetSubitem(columnIndex);

            subItem.Text = subItemText;
        }
Exemple #2
0
        public void Click(int rowIndex, int columnIndex)
        {
            SUIListViewItem    slvitem = GetItemByIndex(rowIndex);
            SUIListViewSubitem subItem = slvitem.GetSubitem(columnIndex);

            subItem.Click();
        }
Exemple #3
0
        public SUIListViewItem GetItemByIndex(int index)
        {
            if (index < 0 || index + 1 > Count)
            {
                throw new SUIException("Index is out of item range!");
            }

            LVITEM i = new LVITEM();

            i.iItem = index;
            SUIListViewItem item = new SUIListViewItem(this, i);

            return(item);
        }
Exemple #4
0
        public SUIListViewItem GetItemByName(string name)
        {
            SUIListViewItem item = null;

            item = GetNextItem(-1, SUIMessage.LVNI_ALL);

            while (!item.IsInvalidItem)
            {
                if (name.Equals(item.Text))
                {
                    return(item);
                }
                item = GetNextItem(item.LVITEM.iItem, SUIMessage.LVNI_ALL);
            }

            return(null);
        }
Exemple #5
0
        public void Click(int rowIndex, int columnIndex, int nFlags)
        {
            SUIListViewItem    slvitem = GetItemByIndex(rowIndex);
            SUIListViewSubitem subItem = slvitem.GetSubitem(columnIndex);

            if (nFlags == 0) //Shift down
            {
                SUIKeyboard.Press(SUI.Base.Win.SUIKeyboard.VK.SHIFT);
                subItem.Click();
                SUIKeyboard.Release(SUI.Base.Win.SUIKeyboard.VK.SHIFT);
            }
            else if (nFlags == 1) //Control down
            {
                SUIKeyboard.Press(SUI.Base.Win.SUIKeyboard.VK.CONTROL);
                subItem.Click();
                SUIKeyboard.Release(SUI.Base.Win.SUIKeyboard.VK.CONTROL);
            }
            else
            {
                subItem.Click();
            }
        }
Exemple #6
0
        public SUIListViewItem GetItemByIndex(int index)
        {
            if (index < 0 || index + 1 > Count)
                throw new SUIException("Index is out of item range!");

            LVITEM i = new LVITEM();
            i.iItem = index;
            SUIListViewItem item = new SUIListViewItem(this, i);
            
            return item;
        }
 public SUIListViewSubitem(SUIListView lv, LVITEM item, SUIListViewItem _parentItem)
     : base(lv, item)
 {
     parentItem = _parentItem;
 }
 public SUIListViewSubitem(SUIListView lv, SUIListViewItem _parentItem)
     : base(lv)
 {
     parentItem = _parentItem;
 }
Exemple #9
0
 public SUIListViewSubitem(SUIListView lv, LVITEM item, SUIListViewItem _parentItem)
     : base(lv, item)
 {
     parentItem = _parentItem;
 }
Exemple #10
0
 public SUIListViewSubitem(SUIListView lv, SUIListViewItem _parentItem)
     : base(lv)
 {
     parentItem = _parentItem;
 }