Hide() public method

public Hide ( bool animated ) : void
animated bool
return void
 void insertPeople(int numberOfPeople)
 {
     hud = new MBProgressHUD();
     hud.Show(true);
     NameGenerator.GetPeopleAsync(numberOfPeople).ContinueWith(t=>{
         if(t.Exception == null){
             Database.Main.InsertPeople(t.Result).ContinueWith(t2 =>{
                 Database.Main.UpdateInstant<Person>();
                 this.BeginInvokeOnMainThread(delegate{
                     if(t2.Exception != null){
                         Console.WriteLine(t2.Exception);
                         (new UIAlertView("Error", "There was an error inserting people.",null,"Ok")).Show();
                     }
                     hud.Hide(true);
                 });
             });
         }
         else
         {
             Console.WriteLine(t.Exception);
             this.BeginInvokeOnMainThread(delegate{
                 (new UIAlertView("Error", "There was an error generating names.",null,"Ok")).Show();
                 hud.Hide(true);
             });
         }
     });
 }
Esempio n. 2
0
 private void loadComplete()
 {
     parent.parent.LaunchModal(modalview);
     if (ShowLoadingMessage)
     {
         loading.Hide(true);
     }
 }