Example #1
0
        private async void GetDatePayment()
        {
            DatePayments = await Task.FromResult(Houses.OrderBy(h => h.DateFrom.Day)
                                                 .Select(dp =>
                                                         new DatePayment
            {
                Day = dp.DateFrom.Day,
                Address1 = dp.Address1 + " " + dp.Address4,
                DateFrom = dp.DateFrom,
                Rent = dp.Rent,
                LandlordName = Landlords.SingleOrDefault(l => l.Id == dp.LandlordId).Name
            }).ToArray());

            Globals.DatePaymentSheet.datePaymentBindingSource.DataSource = DatePayments;
        }