예제 #1
0
        private void buttonAddSalon_Click(object sender, EventArgs e)
        {
            AddSalon addSalon = new AddSalon();

            addSalon.ShowDialog();
            checkSalons();
        }
예제 #2
0
 private void dtSalons_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1)
     {
         string   idSalon      = this.dtSalons.CurrentRow.Cells[0].Value.ToString();
         string   libelleSalon = this.dtSalons.CurrentRow.Cells[1].Value.ToString();
         DateTime dateSalon    = Convert.ToDateTime(this.dtSalons.CurrentRow.Cells[2].Value.ToString());
         string   lieuSalon    = this.dtSalons.CurrentRow.Cells[3].Value.ToString();
         AddSalon addSalon     = new AddSalon(idSalon, libelleSalon, dateSalon, lieuSalon);
         addSalon.ShowDialog();
         checkSalons();
     }
 }