private void AddRandomAnimal() { var isSheep = picker.SelectedValue; if (isSheep == AnimalType.WOLF.ToString()) { ImageToast(Keys.ENTERtheWOLF, Foto.WOLF); } else if (isSheep == AnimalType.HUNTER.ToString()) { ImageToast(Keys.ENTERtheHUNTER, Foto.HUNTER_KILLER); } if (businessLogic.AddAnimal(picker.SelectedRow, textNameOfAnimals.Text)) { var alertController = UIAlertController.Create ("WARNING", Keys.REPEATtheNAME, UIAlertControllerStyle.Alert); alertController.AddAction(UIAlertAction.Create ("OK", UIAlertActionStyle.Default, null)); PresentViewController(alertController, true, null); ImageToast(Keys.REPEATtheNAME, Foto.INFO); } else { CountAnimal(); DeleteKeyboard(); } listOfSheeps.Source = new TableSource(businessLogic.GetAnimalModel(), this); listOfSheeps.ReloadData(); }