private void btnEdit_Click(object sender, RoutedEventArgs e) { Human selection = (Human)dataGrid.SelectedItem; DetailWindow dw = new DetailWindow(CurrentUser, selection); dw.Show(); }
private void dataGrid_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) { Human selection = (Human)dataGrid.SelectedItem; DetailWindow dw = new DetailWindow(CurrentUser, selection); dw.Show(); }
private void btnAddClient_Click(object sender, RoutedEventArgs e) { DetailWindow dw = new DetailWindow(CurrentUser, null); dw.Show(); }