You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 satır
1.0KB

  1. namespace MaUI
  2. {
  3. public partial class MainPage : ContentPage
  4. {
  5. public MainPage()
  6. {
  7. InitializeComponent();
  8. //VerifConnexion();
  9. }
  10. #region Méthodes pour la vérification de connexion
  11. private void VerifConnexion()
  12. {
  13. if (!UserConntected.IsConnected)
  14. Navigation.PushAsync(new AuthLogin());
  15. }
  16. protected override void OnAppearing()
  17. {
  18. //VerifConnexion();
  19. }
  20. #endregion
  21. #region Méthodes du Menu
  22. private async void OnListeEmails_Clicked(object sender, EventArgs e)
  23. {
  24. await Navigation.PushAsync(new ListeEmails());
  25. }
  26. private async void OnChatRoom_Clicked(object sender, EventArgs e)
  27. {
  28. await Navigation.PushAsync(new ChatRoomPage());
  29. }
  30. private async void OnLOGS_Liste_Clicked(object sender, EventArgs e)
  31. {
  32. await Navigation.PushAsync(new LOGS_Liste_Page());
  33. }
  34. #endregion
  35. }
  36. }