//FIN DLL /// <summary> /// Méthode principale appelée lors de l'ouverture de la page : initialise les objets, le Core (cf DLL) et appelle la fonction afficherPage. /// </summary> /// <param></param> public MainPage() { InitializeComponent(); //La sauvegarde de l'arbre est chargée à partir du dossier local de l'application Windows.Storage.StorageFolder sf = Windows.Storage.ApplicationData.Current.LocalFolder; core = Core_NewFromSave(sf.Path + "\\load.txt"); affichage = new Affichage(); modeSelectionAlternatif = true; afficherPieces(); //gère l'affichage de la grille: boutons selon le format, affichage des pièces... affichage.afficheHeure(TimeBox); //affichage de l'heure en haut à gauche de la page d'accueil }
/*private Contexte contexte; public class Contexte : INotifyPropertyChanged { double speed; double maxSpeed; double angle; int x1, x2, y1, y2; public double Speed { get { return speed; } set { if (value == speed) return; speed = value; NotifyPropertyChanged("Speed"); } } public int X1 { get { return x1; } set { if (value == x1) return; x1 = value; NotifyPropertyChanged("X1"); } } public int Y1 { get { return y1; } set { if (value == y1) return; y1 = value; NotifyPropertyChanged("Y1"); } } public int X2 { get { return x2; } set { if (value == x2) return; x2 = value; NotifyPropertyChanged("X2"); } } public int Y2 { get { return y2; } set { if (value == y2) return; y2 = value; NotifyPropertyChanged("Y2"); } } public double MaxSpeed { get { return maxSpeed; } set { if (value == maxSpeed) return; maxSpeed = value; NotifyPropertyChanged("MaxSpeed"); } } public double Angle { get { return angle; } set { if (value == angle) return; angle = value; NotifyPropertyChanged("Angle"); } } public event PropertyChangedEventHandler PropertyChanged; public void NotifyPropertyChanged(string nomPropriete) { if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs(nomPropriete)); } }*/ public WheelchairFeedback() { this.InitializeComponent(); affichage = new Affichage(); affichage.afficheHeure(timeBox); double maxSpeed = 15; double speed = 5; Speed.Text = speed + " km/h"; double angle = ((speed / maxSpeed) * 180 - 90); MaxSpeed.Text = maxSpeed + " km/h"; SpeedGauge.Rotation = angle; int x1 = 10; int y1 = 10; int x2 = 30; int y2 = 50; int profil = 5; JoystickPosition.X = x1; JoystickPosition.Y = -y1; JoystickVirtualPosition.X = x2; JoystickVirtualPosition.Y = -y2; profile_text.Text = "Profil : "+profil; //this.Refresh.Click += refreshReaction; //refresh(); }
public AdminPage() { this.InitializeComponent(); affichage = new Affichage(); affichage.afficheHeure(TimeBox); }