private void TextInput(string text = "") { if (Type_ != TypeForm.Users) { return; } IEnumerable <object> data = new object[0]; using (DBWokrSql db = new DBWokrSql(Connection)) { data = db.GetStatisticUsersLike(textBox.Text + text); } listView.Items.Clear(); foreach (var item in data) { listView.Items.Add(item); } label.Content = "Знайдено :" + listView.Items.Count; }