Exemplo n.º 1
0
 /// <summary>
 /// Add new Screen
 /// </summary>
 /// <param name="screen">New screen, name must be unique</param>
 public static void Ajouter_Ecran(Ecran ecran)
 {
     foreach (Ecran ecr in ecrans)
     {
         if (ecr.nom == ecran.nom)
         {
             return;
         }
     }
     ecrans.Add(ecran);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Go to screen
 /// </summary>
 /// <param name="name">Screen name</param>
 public static void Goto_Ecran(string nom)
 {
     foreach (Ecran ecran in ecrans)
     {
         if (ecran.nom == nom)
         {
             // Shutsdown Previous Screen
             precedent = EcranActif;
             if (EcranActif != null)
                 EcranActif.Shutdown();
             // Inits New Screen
             EcranActif = ecran;
             if (started)
                 EcranActif.Init();
             return;
         }
     }
 }