Пример #1
0
        private void SaveUpdates()
        {
            contactDetailsSource.EndEdit();
            if (viewModel.DataSetSource.Tables["Customer"].DataSet.HasChanges() || viewModel.DataSetSource.Tables["CustomerContacts"].DataSet.HasChanges())
            {
                string filter = $"Name = '{viewModel.SelectedCustomer.Name}' AND Longitude = '{viewModel.SelectedCustomer.Longitude}' AND Latitude = '{viewModel.SelectedCustomer.Latitude}'";
                viewModel.Execute(btnSave.Tag, filter);
            }

            this.Hide();
        }