Example #1
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);

            this.VM     = new GroupBuyingCategoryVM();
            this.facade = new GroupBuyingFacade(this);
            facade.GetAllGroupBuyingCategory((s, a) =>
            {
                if (a.FaultsHandle())
                {
                    return;
                }
                this.DataGrid.ItemsSource = new ObservableCollection <GroupBuyingCategoryInfo>(a.Result);
            });
        }