EquipmentModule.xaml.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. }
  31. private async void LiveMaps_Tapped(object sender, EventArgs e)
  32. {
  33. using (await MaterialDialog.Instance.LoadingDialogAsync(message: "Loading"))
  34. {
  35. var maps = new LiveMapsTwo();
  36. Navigation.PushAsync(maps);
  37. }
  38. }
  39. }
  40. }