Ejemplo n.º 1
0
 public async void OnLoadFinished(string type)
 {
     if (type == "Users")
     {
         CURRENT_STAGE++;
         SetText();
     }
     if (type == "Admins")
     {
         CURRENT_STAGE++;
         SetText();
     }
     if (type == "Products")
     {
         CURRENT_STAGE++;
         SetText();
     }
     if (type == "Pins")
     {
         CURRENT_STAGE++;
         SetText();
     }
     if (type == "Fixing")
     {
         CURRENT_STAGE++;
         SetText();
         load.Pause();
         load.IsVisible = false;
         if (Application.Current.Properties.ContainsKey("Logged"))
         {
             int Id = (int)Application.Current.Properties["Logged"];
             Navigation.PushAsync(new MapPage(DBActions.GetUserById(Id)));
         }
         else
         {
             Navigation.PushAsync(new WelcomePage("Default"));
         }/**/
         App.RemovePage(this);
     }
 }