public Alerte(tache t, modif_tache page, int id_user)
 {
     this.t       = new tache();
     this.t       = t;
     this.m       = page;
     this.id_user = id_user;
     InitializeComponent();
 }
 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(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();
 }
Exemple #4
0
        private void modif_Click(object sender, RoutedEventArgs e)
        {
            Button btn = (Button)sender;

            if (btn != null)
            {
                var st = FindParent <Grid>(btn); //stackpanel as we have added item as stackpanel.
                if (st != null)
                {
                    int         index = list_box.Items.IndexOf(st);
                    modif_tache win   = new modif_tache(list[index], this, index);
                    win.Show();
                }
            }
        }