Example #1
0
        private void btn_add_Click(object sender, RoutedEventArgs e)
        {
            ModifyPacienteView modifyPacienteView = new ModifyPacienteView(null);

            modifyPacienteView.ShowDialog();
            Tabela.ItemsSource = PacienteDAO.GetAll();
        }
Example #2
0
        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();
        }