Exemplo n.º 1
0
        public static void DeSerialiserListe()
        {
            XmlSerializer serialiseur = new XmlSerializer(typeof(ListePrincipale));
            StreamReader  lecteur     = new StreamReader("Text.xml");

            ListeTachesPrincipale = (ListePrincipale)serialiseur.Deserialize(lecteur);
            lecteur.Close();
            ListeTachesPrincipale.MiseAJourTempsTotal();
        }
Exemplo n.º 2
0
        public static void RetirerProgrammes(System.Collections.IList lstPrg)
        {
            List <Programme> tmpLstPrg = new List <Programme>();

            foreach (Programme item in lstPrg)
            {
                tmpLstPrg.Add(item);
            }
            foreach (Programme item in tmpLstPrg)
            {
                ListeTachesPrincipale.RetirerProgramme(item);
            }
        }
Exemplo n.º 3
0
 public static void MiseAJourProgramme(Programme oldPrg, Programme newPrg)
 {
     ListeTachesPrincipale.MiseAJourProgramme(oldPrg, newPrg);
 }
Exemplo n.º 4
0
 public static void AjouterProgramme(string itl, TimeSpan dr)
 {
     ListeTachesPrincipale.AjouterProgramme(new Programme(itl, dr));
 }
Exemplo n.º 5
0
 public static void MiseAJourTache(DateTime dtCrt, ContrainteTemps ctrTps)
 {
     ListeTachesPrincipale.MiseAJourTache(dtCrt, ctrTps);
 }
Exemplo n.º 6
0
 public static void MiseAJourTache(Tache oldTch, Tache newTch)
 {
     ListeTachesPrincipale.MiseAJourTache(oldTch, newTch);
 }
Exemplo n.º 7
0
 // METHODES =========================
 public static void CreerTache(string itl, TimeSpan dr)
 {
     ListeTachesPrincipale.AjouterTache(new Tache(itl, dr, Statuts.aFaire, ""));
 }