Exemplo n.º 1
0
        public void SetTypeTransmission(TypeTransmission TypeTransmission)
        {
            switch (TypeTransmission)
            {
            case TypeTransmission.none: ComboBTypeTransmission.SelectedIndex = 0; break;

            case TypeTransmission.mechanical: ComboBTypeTransmission.SelectedIndex = 1; break;

            case TypeTransmission.automatic: ComboBTypeTransmission.SelectedIndex = 2; break;

            case TypeTransmission.robotic: ComboBTypeTransmission.SelectedIndex = 3; break;
            }
        }
Exemplo n.º 2
0
 public Transmission(int numGears, TypeTransmission typeTransmission)
 {
     this.NumGears         = numGears;
     this.TypeTransmission = typeTransmission;
 }
 public void SetTypeTransmission(TypeTransmission typeTransmission)
 {
     FTransmission.SetTypeTransmission(typeTransmission);
 }