public override void OnPageLoad(object sender, System.EventArgs e) { base.OnPageLoad(sender, e); _facade = new ProductPayTypeFacade(this); _filter = new ProductPayTypeQueryFilter(); _model = new ProductPayTypeQueryVM(); DataContext = _model; cbPayTypeStatus.ItemsSource = EnumConverter.GetKeyValuePairs <PayTypeStatus>(EnumConverter.EnumAppendItemType.All); }
public UCProductPayTypeMaintain() { InitializeComponent(); Loaded += (sender, e) => { _facade = new ProductPayTypeFacade(); _productPayTypeVm = new ProductPayTypeVM(); //绑定支付方式列表 //查询PM列表 _facade.GetProductPayTypeList((obj, args) => { this.DataContext = _productPayTypeVm; checkBoxListPayType.ItemsSource = args.Result; }); }; }