public add_doc(docs_tache_events page, int id_user, event_class eve)
 {
     documents    = page;
     this.eve     = eve;
     this.id_tach = -1;
     this.id_user = id_user;
     InitializeComponent();
 }
 public add_doc(docs_tache_events page, int id_user, int id_tach)
 {
     documents    = page;
     this.id_tach = id_tach;
     eve          = null;
     this.id_user = id_user;
     InitializeComponent();
 }
 public modif_alerte(event_class eve, int id_user, evenement page)
 {
     this.id_user    = id_user;
     this.eve        = eve;
     this.evenements = page;
     InitializeComponent();
     Date.Value = ((eve.get_alerte()).gettemps());
     music.Text = (eve.get_alerte()).getson();
 }
 public add_doc(modif_tache page, int id_tach, int id_user)
 {
     modifier_tache = page;
     this.id_user   = id_user;
     this.id_tach   = id_tach;
     this.doc       = null;
     eve            = null;
     InitializeComponent();
 }
 public modif_alerte(tache t, int id_user, list_taches page)
 {
     this.eve     = null;
     this.id_user = id_user;
     this.t       = t;
     this.taches  = page;
     InitializeComponent();
     Date.Value = ((t.get_alert()).gettemps());
     music.Text = (t.get_alert()).getson();
 }
 public AddEvent(int id, evenement page)
 {
     InitializeComponent();
     this.id_user = id;
     this.page    = page;
     title.Text   = "Nouvel Evénement";
     this.eve     = null;
     this.new_eve = new event_class();
     this.list    = new List <document>();
 }
 public modif_alerte(alerte_class a, event_class eve, int id_user, AddEvent addev)
 {
     this.eve     = new event_class();
     this.eve     = eve;
     this.addev   = addev;
     this.id_user = id_user;
     this.al      = a;
     InitializeComponent();
     Date.Value = (al.gettemps());
     music.Text = al.getson();
 }
 public modif_alerte(tache t, add_tache page, int id_user)
 {
     this.t       = new tache();
     this.t       = t;
     this.page    = page;
     this.eve     = null;
     this.id_user = id_user;
     InitializeComponent();
     Date.Value = (t.get_alert()).gettemps();
     music.Text = (t.get_alert()).getson();
 }
 public add_doc(document_page page, document doc, int id_user)
 {
     pge_docs     = page;
     eve          = null;
     this.id_user = id_user;
     this.doc     = doc;
     InitializeComponent();
     textBlock.Text   = "Modifier le document";
     titre.Text       = doc.getTitre();
     emplacement.Text = doc.getEmplac();
 }
 public modif_alerte(alerte_class a, tache t, int id_user, modif_tache m)
 {
     this.eve     = null;
     this.t       = new tache();
     this.t       = t;
     this.m       = m;
     this.id_user = id_user;
     this.al      = a;
     InitializeComponent();
     Date.Value = (al.gettemps());
     music.Text = al.getson();
 }
        public add_doc(docs_tache_events page, document doc)
        {
            this.documents = page;

            this.doc = doc;
            InitializeComponent();
            textBlock.Text   = "Modifier le document";
            titre.Text       = doc.getTitre();
            emplacement.Text = doc.getEmplac();
            pge_docs         = null;
            eve = null;
        }
Exemplo n.º 12
0
        public docs_tache_events(int id_user, event_class eve, evenement events, acceuil home)
        {
            this.id_user = id_user;
            this.t       = null;
            this.eve     = eve;
            this.events  = events;
            this.taches  = null;
            this.home    = home;
            InitializeComponent();
            info.Text = eve.getDesig();
            methodes m = new methodes();

            list = m.docs_of_event(eve.getId(), id_user);
            afficher(list);
        }
Exemplo n.º 13
0
        public docs_tache_events(int id_user, tache t, list_taches taches, acceuil home)
        {
            this.id_user = id_user;
            this.t       = t;
            this.eve     = null;
            this.events  = null;
            this.taches  = taches;
            InitializeComponent();
            info.Text = t.get_des();
            this.home = home;
            methodes m = new methodes();

            list = m.docs_of_tache(t.get_id(), id_user);
            afficher(list);
        }
 public AddEvent(event_class e, evenement page)
 {
     this.page    = page;
     this.eve     = e;
     this.new_eve = null;
     InitializeComponent();
     title.Text                  = "Modifier l' Evénement";
     designation.Text            = e.getDesig();
     Lieu.Text                   = e.getLieu();
     date.Text                   = e.getDate().ToString("dd/MM/yyyy");
     debut.Text                  = e.getDate().ToString("HH:mm");
     fin.Text                    = e.getFin().ToString("HH:mm");
     Document_add.Visibility     = Visibility.Collapsed;
     ajouter_document.Visibility = Visibility.Collapsed;
     if (e.get_alerte() != null)
     {
         Image img = new Image();
         img.Source             = new BitmapImage(new Uri("modif2.png", UriKind.Relative));
         ajouter_alerte.Content = img;
         info.Text = e.get_alerte().gettemps().ToString();
     }
 }
Exemplo n.º 15
0
 public void add_tolist(event_class new_eve)
 {
     this.list.Add(new_eve);
 }