Exemple #1
0
 /*   void mul_del(object sender, RoutedEventArgs e)
  * {
  * List<int> ind = new List<int>();
  * foreach (Expander i in listBox.Items)
  * {
  *
  *     CheckBox ch = GetChildOfType<CheckBox>(i);
  *     if (ch.IsChecked.Value)
  *     {
  *         int index = listBox.Items.IndexOf(i);
  *         methodes m = new methodes();
  *         m.delete_event(list[index]);
  *         ind.Add(index);
  *
  *     }
  *
  *
  * }
  * int cpt = 0;
  *
  * foreach (int x in ind)
  * {
  *
  *     list.Remove(list[x - cpt]);
  *     listBox.Items.Remove(listBox.Items[x - cpt]);
  *
  *     cpt++;
  * }
  *
  *
  * }*/
 private void HandleDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (listBox.SelectedItem != null)
     {
         docs_tache_events page = new docs_tache_events(user.getid_utilis(), list[listBox.SelectedIndex], this, home);
         home.set_frame(page);
     }
 }
 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 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, 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;
        }
Exemple #5
0
 public void set_frame(docs_tache_events page)
 {
     frame.Content = page;
 }