private void FormBase_Loaded(object sender, RoutedEventArgs e) { IReceiptsQuery receiptsQuery = new MockReceiptsQuery(); ServiceResult <System.Collections.Generic.IEnumerable <ReceiptViewModel> > result = receiptsQuery.GetList(new ReceiptsQueryInputModel() { CustomerId = 1 }); ReceiptsGrid.ConsumeData(result.Data); }
private void RebindGrid() { ReceiptsGrid.DataSource = Receipt; ReceiptsGrid.DataBind(); }