private void Button_Click(object sender, RoutedEventArgs e) { var editClient = new EditClient(); editClient.ShowDialog(); LoadData(); }
private void EditClient_OnClick(object sender, RoutedEventArgs e) { var clientRow = dataGridClient.SelectedItem as Client; var editClient = new EditClient(clientRow.id); editClient.ShowDialog(); LoadData(); }