Пример #1
0
        private void DisasterReportsViewLv_ItemClick(object sender, SelectionChangedEventArgs e)
        {
            Disaster_Report_View disaster = DisasterReportsViewLv.SelectedItem as Disaster_Report_View;
            DisasterReportDetail r        = new DisasterReportDetail()
            {
                hw     = user,
                report = disaster
            };

            this.Frame.Navigate(typeof(DisasterReportDetailPage), r);
        }
Пример #2
0
        private async void loaddata()
        {
            user                 = reportdetail.hw;
            report               = reportdetail.report;
            DescriptionTb.Text   = report.description;
            dateTb.Text          = report.occurred_time + "";
            DisasterImage.Source = report.icon;
            TypeTb.Text          = report.disaster;
            var hw = await App.MobileService.GetTable <Health_Worker>().Where(r => r.id == report.hw_id).ToListAsync();

            NameTb.Text = hw[0].fname + " " + hw[0].lname;
        }