Пример #1
0
            public void OnCustomerPersonChanged(object sender, PropertyChangeEventArgs e)
            {
                if (!e.Change.IncludesValue() || DataProperty.Equals(e.OldValue, e.NewValue) ||
                    salesOrder.CustomerObject.PersonIdProperty.Value == null)
                {
                    return;
                }

                LoadCache(Enumerations.PersonCreditCard.EnumName, delegate(LookupTable tbl)
                {
                    EnumProperty p = salesOrder.PaymentObject.CreditCardObject.CreditCardIdProperty;
                    p.SetValue(null);
                    p.LocalLookupTable = tbl;
                    p.FirePropertyChange(new PropertyChangeEventArgs(PropertyChange.Items, null, null));
                });
            }
Пример #2
0
 private void UpdateProperty(LookupTable tbl, EnumProperty ep)
 {
     ep.SetValue(null);
     ep.LocalLookupTable = tbl;
     ep.FirePropertyChange(new PropertyChangeEventArgs(PropertyChange.Items, null, null));
 }
 private void UpdateProperty(LookupTable tbl, EnumProperty ep)
 {
     ep.SetValue(null);
     ep.LocalLookupTable = tbl;
     ep.FirePropertyChange(new PropertyChangeEventArgs(PropertyChange.Items, null, null));
 }