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.
20 lines
433 B
20 lines
433 B
using Model.Stub;
|
|
using Model;
|
|
using System.Windows.Input;
|
|
|
|
namespace Ohara;
|
|
|
|
public partial class PageInfoBateau : ContentPage
|
|
{
|
|
public ICommand AjouterFavs { get; private set; }
|
|
public PageInfoBateau(Bateau bateau)
|
|
{
|
|
InitializeComponent();
|
|
|
|
BindingContext=bateau;
|
|
AjouterFavs = new Command(() => bateau.EstFavori = true);
|
|
ButtonFav.Command = AjouterFavs;
|
|
}
|
|
|
|
|
|
} |