Пример #1
0
 public void PresentMainPage()
 {
     if (NotificationOn)
     {
         MainPage       = new MapNavigationPage(VictimId);
         NotificationOn = false;
     }
     else
     {
         MainPage = !IsLoggedIn ? (Page) new LoginPage() : new SmartBandAlertV6.Views.MainPage();
     }
 }
Пример #2
0
 public void PresentMainPage()
 {
     if (IsLoggedIn)
     {
         sendUserLocationAsync();
         updateLocation();
     }
     if (NotificationOn)
     {
         MainPage       = new MapNavigationPage(Latitude, Longitude); //pass id, latitude and longitude.
         NotificationOn = false;
     }
     else
     {
         MainPage = !IsLoggedIn ? (Page) new LoginPage() : new MainPage();
     }
 }