private void btn_add_Click(object sender, RoutedEventArgs e) { ModifyPacienteView modifyPacienteView = new ModifyPacienteView(null); modifyPacienteView.ShowDialog(); Tabela.ItemsSource = PacienteDAO.GetAll(); }
private void btn_up_Click(object sender, RoutedEventArgs e) { Paciente paciente = (Paciente)((DataGrid)Tabela).SelectedItem; ModifyPacienteView modifyPacienteView = new ModifyPacienteView(paciente); modifyPacienteView.ShowDialog(); Tabela.Items.Refresh(); }