private void BtnSearch_Click(object sender, RoutedEventArgs e) { wClientesTabela table = new wClientesTabela(); table.ShowDialog(); if (table.Cli != null) { List.SelectedIndex = table.Cli.Id; } }
private void BtnClientes_Click(object sender, RoutedEventArgs e) { wClientesTabela clientes = new wClientesTabela(); clientes.ShowDialog(); if (clientes.Cli != null) { lbClienteSelecionar.Content = clientes.Cli.Nome; } }