private void button1_Click(object sender, RoutedEventArgs e) { Articlet ar = new Articlet(); List <Articlet> er = new List <Articlet>(); er.Add(ar.search(textBox.Text.Trim())); Visitors_grid.ItemsSource = er; }
public void fun() { Articlet art = new Articlet(); Visitors_grid.ItemsSource = art.retrieve(); }