Exemplo n.º 1
0
        public void AddRowFromArray(object[] cells)
        {
            var item = new ListViewItem(DBControllersFactory.GetFKSource(Columns[0].Name, cells[0].ToString()));

            for (int i = 1; i < Columns.Count; i++)
            {
                item.SubItems.Add(DBControllersFactory.GetFKSource(Columns[i].Name, cells[i]));
            }
            if ("".Equals(Filter) || (item + ":" + string.Join("|", item.SubItems.OfType <ListViewItem.ListViewSubItem>().Select(x => x.Text))).ToLower().Contains(Filter.ToLower()))
            {
                Items.Add(item);
            }
        }