| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using comal.timesheets.CustomControls;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using InABox.Core;
- using Comal.Classes;
- using InABox.Clients;
- using Xamarin.Forms;
- using Xamarin.Forms.Xaml;
- namespace comal.timesheets.SiteITPModule
- {
- [XamlCompilation(XamlCompilationOptions.Compile)]
- public partial class JobITPs : SitePage
- {
- public JobITPs()
- {
- InitializeComponent();
- }
- protected override void JobLoaded()
- {
- Device.BeginInvokeOnMainThread(Refresh);
- }
- private void Refresh()
- {
- ITPs.ItemsSource = Job.ITPs;
- countLbl.Text = "Number of ITPs for Job: " + Job.ITPs.Length.ToString();
- }
-
- private void ITPs_OnOnRefreshRequested(object sender, MobileGridRefreshRequestArgs args)
- {
- Refresh();
- }
- private void ITPs_OnSelectionChanged(object sender, MobileGridSelectionArgs args)
- {
- var itp = ITPs.SelectedItems.FirstOrDefault() as JobITPShell;
- if (itp == null)
- return;
- JobITPDetails iTPDetailsPage = new JobITPDetails(itp);
- Navigation.PushAsync(iTPDetailsPage);
- }
- }
-
- }
|