private void AddCust_Click(object sender, RoutedEventArgs e) { name = NAME.Text; lname = LNAME.Text; phone = PHONE.Text; SQL_Calls.AddNewCustomer(name, lname, phone); //clear the text NAME.Text = ""; LNAME.Text = ""; PHONE.Text = ""; //refresh the view CustomersView.ItemsSource = null; ZP_Customers.CustList.Clear(); ZP_Customers.CustList = SQL_Calls.Select_Customers(); CustomersView.ItemsSource = ZP_Customers.CustList; }