private void RadPathButton_Click(object sender, RoutedEventArgs e) { //for (int i = 0; i < AccDocumentHeaderRadGridView.SelectedItems.Count; i++) //{ //_uow.AccDocumentHeaders.Remove((AccDocumentHeader)AccDocumentHeaderRadGridView.SelectedItems[i]); //} // _uow.AccDocumentHeaders.Remove((AccDocumentHeader)AccDocumentHeaderRadGridView.SelectedItem); AccDocumentAccDocumentHeaderDataForm.DeleteItem(); var r = _uow.SaveChanges(); }
private void accDocumentHeaderDataGrid_AddingNewDataItem(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e) { //_uow.AccDocumentHeaders.Add((AccDocumentHeader)e.NewObject); AccDocumentAccDocumentHeaderDataForm.AddNewItem(); }