|
|
@ -1,15 +1,36 @@
|
|
|
|
using Model;
|
|
|
|
/*!
|
|
|
|
|
|
|
|
* \file App.xaml.cs
|
|
|
|
|
|
|
|
* \author Léana Besson
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
using Model;
|
|
|
|
using Persistance;
|
|
|
|
using Persistance;
|
|
|
|
using System.ComponentModel;
|
|
|
|
using System.ComponentModel;
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
|
|
* \namespace Views
|
|
|
|
|
|
|
|
*/
|
|
|
|
namespace Views
|
|
|
|
namespace Views
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
|
|
* \class App
|
|
|
|
|
|
|
|
* \brief Regroups functions for App operation
|
|
|
|
|
|
|
|
*/
|
|
|
|
public partial class App : Application, INotifyPropertyChanged
|
|
|
|
public partial class App : Application, INotifyPropertyChanged
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
|
|
* \param SerializationPath string - Path to AppDataDirectory folder for persistence
|
|
|
|
|
|
|
|
*/
|
|
|
|
public string SerializationPath = FileSystem.Current.AppDataDirectory;
|
|
|
|
public string SerializationPath = FileSystem.Current.AppDataDirectory;
|
|
|
|
static private string serializationPath = FileSystem.Current.AppDataDirectory;
|
|
|
|
static private string serializationPath = FileSystem.Current.AppDataDirectory;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
|
|
* \param theque Theque - Contains all data on Species and Pets
|
|
|
|
|
|
|
|
*/
|
|
|
|
public Theque Theque { get; set; } = DataSerializerBinary.Deserializer(serializationPath);
|
|
|
|
public Theque Theque { get; set; } = DataSerializerBinary.Deserializer(serializationPath);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
|
|
* \param AnimalSelectionner Animal - Contains user-selected animal data
|
|
|
|
|
|
|
|
*/
|
|
|
|
public Animal AnimalSelectionner
|
|
|
|
public Animal AnimalSelectionner
|
|
|
|
{
|
|
|
|
{
|
|
|
|
get => animalSelectionner;
|
|
|
|
get => animalSelectionner;
|
|
|
@ -21,10 +42,25 @@ namespace Views
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private Animal animalSelectionner;
|
|
|
|
private Animal animalSelectionner;
|
|
|
|
|
|
|
|
|
|
|
|
public New_DetailAnimal PageDeSaisie { get; set; }
|
|
|
|
/*!
|
|
|
|
|
|
|
|
* \param EspeceSelectionner Espece - Contains user-selected species data
|
|
|
|
|
|
|
|
*/
|
|
|
|
public Espece EspeceSelectionner { get; set; }
|
|
|
|
public Espece EspeceSelectionner { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
|
|
* \param RaceSelectionner Race - Contains user-selected breed data
|
|
|
|
|
|
|
|
*/
|
|
|
|
public Race RaceSelectionner { get; set; }
|
|
|
|
public Race RaceSelectionner { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
|
|
* \param PageDeSaisie New_DetailAnimal -
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public New_DetailAnimal PageDeSaisie { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
|
|
* \fn App()
|
|
|
|
|
|
|
|
* \brief App constructor with component initialization and creation of a new AppShell
|
|
|
|
|
|
|
|
*/
|
|
|
|
public App()
|
|
|
|
public App()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
|
|
|
InitializeComponent();
|
|
|
|