private void DeleteChambre() { BS_AYANT.Position = 0; DTR_Chambre = dS_Master.Tables["CHAMBRE"].Rows[BS_CHAMBRE.Position]; foreach (DataRow DTR_toDel in DTR_Chambre.GetChildRows("AYANT_FK_NoCham")) { BS_AYANT.RemoveCurrent(); BS_AYANT.Position++; } BS_CHAMBRE.RemoveCurrent(); BS_CHAMBRE.MoveFirst(); try { TA_AYANT.Update(dS_Master.AYANT); TA_CHAMBRE.Update(dS_Master.CHAMBRE); AjustNbDispoInTypeCham(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void Go_Start() { BS_CHAMBRE.MoveFirst(); }