private async void OnListPropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            switch (e.PropertyName)
            {
            case nameof(CustomerListViewModel.SelectedItem):
                CustomerDetails.CancelEdit();
                CustomerOrders.IsMultipleSelection = false;
                if (!CustomerList.IsMultipleSelection)
                {
                    await PopulateDetails(CustomerList.SelectedItem);
                    await PopulateOrders(CustomerList.SelectedItem);
                }
                break;

            default:
                break;
            }
        }
        private async void OnItemSelected()
        {
            if (CustomerDetails.IsEditMode)
            {
                StatusReady();
                CustomerDetails.CancelEdit();
            }
            CustomerOrders.IsMultipleSelection = false;
            var selected = CustomerList.SelectedItem;

            if (!CustomerList.IsMultipleSelection)
            {
                if (selected != null && !selected.IsEmpty)
                {
                    await PopulateDetails(selected);
                    await PopulateOrders(selected);
                }
            }
            CustomerDetails.Item = selected;
        }
 public void Unload()
 {
     CustomerDetails.CancelEdit();
     CustomerList.Unload();
 }
 public void CancelEdit()
 {
     CustomerDetails.CancelEdit();
 }