private void btnAlterar_Click(object sender, RoutedEventArgs e) { try { frmCadastroRecursos rec = new frmCadastroRecursos(_recurso, dtgRecursos.SelectedItem); rec.ShowDialog(); CarregarLista(); } catch { MessageBox.Show("Não foi possível concluir a solicitação.", "SmartSys", MessageBoxButton.OK, MessageBoxImage.Error); } }
private void btnNovo_Click(object sender, RoutedEventArgs e) { frmCadastroRecursos rec = new frmCadastroRecursos(_recurso); rec.ShowDialog(); CarregarLista(); }