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();
        }
        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 = listBox.Items.IndexOf(st);
                    add_act win   = new add_act(list[index], this, index);
                    win.Show();
                }
            }
        }
        private void add_Click(object sender, RoutedEventArgs e)
        {
            add_act win = new add_act(this, user.getid_utilis());

            win.Show();
        }