/** affichage de la page courante : * - crée la grille de boutons correspondant à la page courante et l'affiche. * - **/ public void afficherPage() { // création de la grille d'affichage des icones this.grille = configuration.arbre.PageCourante.Grille; affichage = new Affichage(this.grille, configuration.theme); affichage.creerGrille(cadre); // affichage des couleurs affichage.afficheCouleur(barreMenu, cadre, accueil, precedent, suivant); affichePageGrille(); }
public void afficherPage() { this.pageAccueil = MainPage.Configuration.arbre.Racine; // création de la grille d'affichage des icones this.g = this.pageAccueil.Grille; this.affich = new Affichage(this.g, MainPage.Configuration.theme); this.affich.creerGrille(cadre); // création et affichage de la liste des boutons et des Icones associées this.listeBoutons = this.affich.afficheGrille(cadre); this.attribueHandler(); }
/*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(); }
/// <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 GestionEquipements() { this.InitializeComponent(); Windows.Storage.StorageFolder sf = Windows.Storage.ApplicationData.Current.LocalFolder; core = Core_NewFromSave(sf.Path + "\\load.txt"); piece = Core_getRoomByName(core, GestionPieces.NomPieceSelectionee); affichage = new Affichage(); afficherPage(); }
//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 }
public AdminPage() { this.InitializeComponent(); affichage = new Affichage(); affichage.afficheHeure(TimeBox); }
/// <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 GestionPieces() { this.InitializeComponent(); Windows.Storage.StorageFolder sf = Windows.Storage.ApplicationData.Current.LocalFolder; core = Core_NewFromSave(sf.Path + "\\load.txt"); affichage = new Affichage(); afficherPage(); //gère l'affichage de la grille: boutons selon le format, affichage des pièces... }