private void RadDataForm1_EditEnded(object sender, EditEndedEventArgs e) { var frameworkElement = sender as FrameworkElement; var supplierViewModel = frameworkElement?.DataContext as StoragePlaceViewModel; supplierViewModel?.Save(); }
private void RadDataForm1_EditEnded(object sender, EditEndedEventArgs e) { var frameworkElement = sender as FrameworkElement; var invoiceViewModel = frameworkElement?.DataContext as InvoiceViewModel; if (invoiceViewModel != null) { invoiceViewModel.Save(); } }