Example #1
0
        private void RadDataForm1_EditEnded(object sender, EditEndedEventArgs e)
        {
            var frameworkElement  = sender as FrameworkElement;
            var supplierViewModel = frameworkElement?.DataContext as StoragePlaceViewModel;

            supplierViewModel?.Save();
        }
Example #2
0
        private void RadDataForm1_EditEnded(object sender, EditEndedEventArgs e)
        {
            var frameworkElement = sender as FrameworkElement;
            var invoiceViewModel = frameworkElement?.DataContext as InvoiceViewModel;

            if (invoiceViewModel != null)
            {
                invoiceViewModel.Save();
            }
        }