Example #1
0
        private void modifierToolStripMenuItem_Click(object sender, EventArgs e)
        {
            String id   = this.allRDVList.SelectedItems[0].ToString();
            var    rdvs = _db.RendezVous;

            foreach (RendezVous rdv in rdvs)
            {
                if (rdv.Date == Convert.ToDateTime(id))
                {
                    RendezVousForm rdvtoshow = new RendezVousForm(rdv);
                    rdvtoshow.Show();
                }
            }
        }
Example #2
0
 private void modifierToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listRdv.SelectedItem == null)
     {
         MessageBox.Show("Sélectionnez un rendez-vous.");
     }
     else
     {
         int            selectedRdv    = listRdv.SelectedIndex;
         RendezVousForm rendezVousForm = new RendezVousForm(rdvs[selectedRdv]);
         rendezVousForm.Show();
         this.Close();
     }
 }
Example #3
0
        private void addRDVButton_Click(object sender, EventArgs e)
        {
            RendezVousForm rendezVousForm = new RendezVousForm(client);

            rendezVousForm.Show();
        }