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.
48 lines
1.3 KiB
48 lines
1.3 KiB
/*!
|
|
* \file App.xaml.cs
|
|
* \author Léana Besson
|
|
*/
|
|
using Model;
|
|
using Persistance;
|
|
using System.ComponentModel;
|
|
|
|
/*!
|
|
* \namespace Views
|
|
*/
|
|
namespace Views
|
|
{
|
|
/*!
|
|
* \class App
|
|
* \brief Regroups functions for App operation
|
|
*/
|
|
public partial class App : Application, INotifyPropertyChanged
|
|
{
|
|
public string SerializationPath = FileSystem.Current.AppDataDirectory;
|
|
static private string serializationPath = FileSystem.Current.AppDataDirectory;
|
|
public Theque Theque { get; set; } = DataSerializerBinary.Deserializer(serializationPath);
|
|
|
|
public Animal AnimalSelectionner
|
|
{
|
|
get => animalSelectionner;
|
|
set
|
|
{
|
|
animalSelectionner = value;
|
|
OnPropertyChanged(nameof(AnimalSelectionner));
|
|
}
|
|
}
|
|
private Animal animalSelectionner;
|
|
public Espece EspeceSelectionner { get; set; }
|
|
public Race RaceSelectionner { get; set; }
|
|
public New_DetailAnimal PageDeSaisie { get; set; }
|
|
|
|
/*!
|
|
* \fn App()
|
|
* \brief App constructor with component initialization and creation of a new AppShell
|
|
*/
|
|
public App()
|
|
{
|
|
InitializeComponent();
|
|
MainPage = new AppShell();
|
|
}
|
|
}
|
|
} |