EquipmentModule.xaml.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Xamarin.Forms;
  7. using Xamarin.Forms.Xaml;
  8. using XF.Material.Forms.UI.Dialogs;
  9. namespace comal.timesheets
  10. {
  11. [XamlCompilation(XamlCompilationOptions.Compile)]
  12. public partial class EquipmentModule : ContentPage
  13. {
  14. public EquipmentModule ()
  15. {
  16. InitializeComponent ();
  17. NavigationPage.SetHasBackButton(this, false);
  18. }
  19. private void BackBtn_Clicked(object sender, EventArgs e)
  20. {
  21. Navigation.PopAsync();
  22. }
  23. private async void EquipmentList_Tapped(object sender, EventArgs e)
  24. {
  25. //using (await MaterialDialog.Instance.LoadingDialogAsync(message: "Loading"))
  26. //{
  27. // var equipment = new EquipmentList();
  28. // Navigation.PushAsync(equipment);
  29. //}
  30. var page = new DataGridHost(new EquipmentGrid());
  31. Navigation.PushAsync(page);
  32. }
  33. private async void LiveMaps_Tapped(object sender, EventArgs e)
  34. {
  35. using (await MaterialDialog.Instance.LoadingDialogAsync(message: "Loading"))
  36. {
  37. var maps = new LiveMapsTwo();
  38. Navigation.PushAsync(maps);
  39. }
  40. }
  41. }
  42. }