/// <summary> /// Change le style de form. /// - Automobile /// - Moto /// - Cylclomoteur /// </summary> private void ChangeSeanceUpdateType(StudentGroup.GroupType type) { switch (type) { case StudentGroup.GroupType.Automobile: //Tous active break; case StudentGroup.GroupType.Cyclomoteur: rb4.Visible = rb5.Visible = rb6.Visible = rb7.Visible = rb8.Visible = rb9.Visible = rb10.Visible = rb11.Visible = rb12.Visible = false; break; case StudentGroup.GroupType.Moto: rb4.Visible = rb5.Visible = rb6.Visible = rb7.Visible = rb8.Visible = rb9.Visible = rb10.Visible = rb11.Visible = rb12.Visible = false; break; } }
private void cbCyclomoteur_CheckedChanged(object sender, EventArgs e) { _GroupeType = StudentGroup.GroupType.Cyclomoteur; }
private void cbMoto_CheckedChanged(object sender, EventArgs e) { _GroupeType = StudentGroup.GroupType.Moto; }
private void cbAutomobile_CheckedChanged(object sender, EventArgs e) { _GroupeType = StudentGroup.GroupType.Automobile; }