public MainWindow() { InitializeComponent(); EcommerceEntities bancoDados = new EcommerceEntities(); ClienteListView clienteListView = new ClienteListView(); clienteListView.ShowDialog(); }
public async void SearchClientes_TextChanged(object sender, TextChangedEventArgs e) { HttpClient clientesearch = new HttpClient(); var response = await clientesearch.GetStringAsync(Constantes.Base + "/api/clientes/Getcliente"); var verclientes = JsonConvert.DeserializeObject <List <cliente> >(response); var ListClient = verclientes.Where(i => i.nombrecl.Contains(e.NewTextValue)); ClienteListView.ItemsSource = ListClient; ClienteListView.BeginRefresh(); ClienteListView.EndRefresh(); }
public void OpenClientes() { var frm = new ClienteListView(); frm.ShowDialog(); }