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.
40 lines
1.0 KiB
40 lines
1.0 KiB
/*!
|
|
* \file Especes.xmal.cs
|
|
* \author Léana Besson
|
|
*/
|
|
using Model;
|
|
|
|
/*!
|
|
* \namespace Views
|
|
*/
|
|
namespace Views;
|
|
|
|
/*!
|
|
* \class Especes
|
|
* \brief Regroups functions for Especes page operation
|
|
*/
|
|
public partial class Especes : ContentPage
|
|
{
|
|
/*!
|
|
* \fn DetailRace()
|
|
* \brief Especes page constructor with component initialization and context binding assignment
|
|
*/
|
|
public Especes()
|
|
{
|
|
InitializeComponent();
|
|
BindingContext = (App.Current as App).Theque;
|
|
}
|
|
|
|
/*!
|
|
* \fn OnClick(object sender, ItemTappedEventArgs e)
|
|
* \brief Saves the species selected by the user and opens a new DetailEspece page
|
|
* \param sender object - Event emitter information, namely the Especes.xaml page
|
|
* \param e ItemTappedEventArgs - Information on selected species
|
|
*/
|
|
public void OnClick(object sender, ItemTappedEventArgs e)
|
|
{
|
|
(App.Current as App).EspeceSelectionner = e.Item as Espece;
|
|
Navigation.PushAsync(new DetailEspece());
|
|
}
|
|
}
|