public void set_alarm_tonew_event(alerte_class a)
        {
            new_eve.set_alerte(a);
            Image img = new Image();

            img.Source             = new BitmapImage(new Uri("modif2.png", UriKind.Relative));
            ajouter_alerte.Content = img;
            info.Text = new_eve.get_alerte().gettemps().ToString();
        }
        private void valid_alert_event(alerte_class alerte)
        {
            methodes meth = new methodes();

            if (addev == null)
            {
                /* if (evenements == null)
                 * {
                 *
                 *  page.Show(); page.set_alarm(alerte); this.Close();
                 * }
                 * else
                 * {*/
                alerte.setidalerte((eve.get_alerte()).getidalerte());
                alerte.setidutilis(eve.getIdUtilis());
                alerte.setidévèn(eve.getId());
                eve.set_alerte(alerte);
                (eve.get_alerte()).Modifier_aler_even_bdd((eve.get_alerte()).getidalerte(), (eve.get_alerte()));
                meth.supprimer_alerte_planifiée(eve.getDesig());
                meth.Creer_tache_planif(alerte, eve.getDesig(), eve.getDate(), "e");

                evenements.clear_listbox();
                evenements.afficher(evenements.get_list());
                this.Close();
                //}
            }
            else
            {
                if (eve.getId() > 0)
                {
                    alerte.setidalerte((eve.get_alerte()).getidalerte());
                    alerte.setidévèn(eve.getId());
                    addev.set_alarm_event(alerte);
                    addev.Show();
                }
                else
                {
                    addev.Show(); addev.set_alarm_event(alerte); this.Close();
                }
                this.Close();
            }
        }