Example #1
0
        /// <summary>
        /// Ajouter une tache
        /// </summary>
        /// <param name="p_user"></param>
        /// <param name="p_element"></param>
        /// <returns></returns>
        public Tache AjouterTache(Utilisateur p_user, ElementRegistre p_element)
        {
            Tache v_tache = new Tache(p_user, p_element);

            m_dictionary.Add(v_tache.PID, v_tache);
            v_tache.Start();

            return(v_tache);
        }
Example #2
0
        public Tache AjouterTache(Utilisateur p, ElementRegistre e)
        {
            Tache tache = new Tache(p, e);

            dict.Add(tache.PID, tache);
            tache.Start(e.NomClasseExecutable);

            return(tache);
        }