예제 #1
0
        private void CustomerSelected(CustomerModel customer)
        {
            EditableItem.CustomerID = customer.CustomerID;
            EditableItem.Customer   = customer;

            EditableItem.NotifyChanges();
        }
예제 #2
0
        private void ProductSelected(ProductModel product)
        {
            EditableItem.ProductID = product.ProductID;
            EditableItem.UnitPrice = product.ListPrice;
            EditableItem.Product   = product;

            EditableItem.NotifyChanges();
        }
예제 #3
0
        private void PlaceSelected(PlaceModel place)
        {
            EditableItem.PlaceID         = place.PlaceID;
            EditableItem.ShipAddress     = place.Address;
            EditableItem.ShipCity        = place.City;
            EditableItem.ShipRegion      = place.Region;
            EditableItem.ShipCountryCode = place.CountryCode;
            EditableItem.ShipPostalCode  = place.PostalCode;
            EditableItem.Place           = place;

            EditableItem.NotifyChanges();
        }
예제 #4
0
        private void CustomerSelected(CustomerModel customer)
        {
            EditableItem.CustomerID      = customer.CustomerID;
            EditableItem.ShipAddress     = customer.AddressLine1;
            EditableItem.ShipCity        = customer.City;
            EditableItem.ShipRegion      = customer.Region;
            EditableItem.ShipCountryCode = customer.CountryCode;
            EditableItem.ShipPostalCode  = customer.PostalCode;
            EditableItem.Customer        = customer;

            EditableItem.NotifyChanges();
        }