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.
27 lines
676 B
27 lines
676 B
using Model.Stub;
|
|
using Model;
|
|
|
|
namespace Ohara;
|
|
|
|
public partial class PageInfoIle : ContentPage
|
|
{
|
|
public Manager manager => (App.Current as App).manager;
|
|
public PageInfoIle()
|
|
{
|
|
InitializeComponent();
|
|
if (manager.SelectedItem.EstFavori == true)
|
|
{
|
|
bouttonFav.IsEnabled = false;
|
|
bouttonFav.Text = "Ajouté au favoris";
|
|
}
|
|
BindingContext = manager.SelectedItem;
|
|
|
|
}
|
|
|
|
private void AjouterFav_Clicked(object sender, EventArgs e)
|
|
{
|
|
manager.AddFavoris(manager.SelectedItem);
|
|
bouttonFav.IsEnabled = false;
|
|
bouttonFav.Text = "Ajouté au favoris";
|
|
}
|
|
} |