Example #1
0
        public VehiculeGroupBox()
        {
            InitVGB();
            BackColor = System.Drawing.SystemColors.InactiveCaption;

            Controls.AddRange(TypeRBCollection);

            ImmatriculationTextBox = new ImmatriculationTextBox();
            Controls.Add(ImmatriculationTextBox);
        }
Example #2
0
        public VehiculeGroupBox(string immatriculation, string type)
        {
            InitVGB();

            foreach (var typeRB in TypeRBCollection)
            {
                if (typeRB.Text == type) // on coche le TypeRadioButton correspondant au paramètre type
                {
                    BackColor      = System.Drawing.SystemColors.ActiveCaption;
                    typeRB.Checked = true;
                    break;
                }
            }
            Controls.AddRange(TypeRBCollection);

            ImmatriculationTextBox = new ImmatriculationTextBox(immatriculation);
            Controls.Add(ImmatriculationTextBox);
        }