예제 #1
0
        /// <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;
            }
        }
예제 #2
0
 private void cbCyclomoteur_CheckedChanged(object sender, EventArgs e)
 {
     _GroupeType = StudentGroup.GroupType.Cyclomoteur;
 }
예제 #3
0
 private void cbMoto_CheckedChanged(object sender, EventArgs e)
 {
     _GroupeType = StudentGroup.GroupType.Moto;
 }
예제 #4
0
 private void cbAutomobile_CheckedChanged(object sender, EventArgs e)
 {
     _GroupeType = StudentGroup.GroupType.Automobile;
 }