public add_doc(AddEvent page, int id_user)
 {
     ajouter_event = page;
     this.doc      = null;
     ajouter_tache = null;
     this.id_user  = id_user;
     InitializeComponent();
 }
 public Alerte(AddEvent eve, int id_user, Boolean new_event)
 {
     this.id_user   = id_user;
     this.eve       = eve;
     this.t         = null;
     this.new_event = new_event;
     InitializeComponent();
 }
 public modif_alerte(alerte_class a, event_class eve, int id_user, AddEvent addev)
 {
     this.eve     = new event_class();
     this.eve     = eve;
     this.addev   = addev;
     this.id_user = id_user;
     this.al      = a;
     InitializeComponent();
     Date.Value = (al.gettemps());
     music.Text = al.getson();
 }
Пример #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 = listBox.Items.IndexOf(st);
                    AddEvent win   = new AddEvent(list[index], this);
                    win.Show();
                }
            }
        }
Пример #5
0
        private void add_Click(object sender, RoutedEventArgs e)
        {
            AddEvent win = new AddEvent(user.getid_utilis(), this);

            win.Show();
        }