private void btDeletar2_Click(object sender, RoutedEventArgs e) { Acordo acordo = (Acordo)AcordosListView.SelectedItem; if (acordo != null) { ViewModel.ApAtual.Acordos.Remove(acordo); Update(); } }
/******************************ACORDOS****************************************************/ public void addAcordo(Acordo acordo) { acordos.Add(acordo); }