コード例 #1
0
        public async void saveBillingInformationButton_Clicked(object sender, EventArgs e)
        {
            var BillStuff = new BillingModel
            {
                Address1 = addressLine1Entry.Text,
                Address2 = addressLine2Entry.Text,
                City     = cityEntry.Text,
                State    = stateEntry.Text,
                Zip      = zipEntry.Text,
            };

            await App.Database.SaveBillingAsync(BillStuff);

            var billing = await App.Database.GetBilling();

            var billingList = new ObservableCollection <BillingModel>();

            billing.ForEach(x => billingList.Add(x));

            BillingListView.ItemsSource = billingList;
        }
コード例 #2
0
ファイル: LocalDatabase.cs プロジェクト: enrique95ae/Sahara
 public Task <int> SaveBillingAsync(BillingModel bill)
 {
     return(database.InsertAsync(bill));
 }