private void HandleDoubleClick(object sender, MouseButtonEventArgs e) { if (listBox.SelectedItem != null) { list_taches window = new list_taches(list[listBox.SelectedIndex], user, this, page); page.set_frame(window); } }
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 add_tache(add_act a, int id) { this.t = new tache(); t.set_alert(null); this.p = null; this.id_user = id; page = new add_act(); this.page = a; InitializeComponent(); }
public add_tache(activ_class a, int id, list_taches p) { page = new add_act(); this.t = new tache(); t.set_alert(null); this.p = new list_taches(); this.p = p; this.id_user = id; this.a = a; InitializeComponent(); }
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); }
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 modif_tache(tache t, list_taches page, int pos) { this.page = page; this.pos = pos; InitializeComponent(); this.t = t; id = t.get_id(); designationTextBox.Text = t.get_des(); prioritéComboBox.Text = t.get_prio(); dateDatePicker.Text = t.get_date().Date.ToString(); débutTimePicker.Text = t.get_date().ToString("HH:mm"); finTimePicker.Text = t.getfin().ToString("HH:mm"); etatComboBox.Text = t.get_etat(); if (t.get_alert() != null) { Image img = new Image(); img.Source = new BitmapImage(new Uri("modif2.png", UriKind.Relative)); ajouter_alerte.Content = img; info.Text = t.get_alert().gettemps().ToString(); } }
public void set_frame(list_taches page) { frame.Content = page; }