SetSelected() публичный Метод

public SetSelected ( bool selected ) : void
selected bool
Результат void
 public void AddRadioButton(string text)
 {
     RadioButtonControl ctrl = new RadioButtonControl(text, this);
     radioControls.Add(ctrl);
     radioLayout.Add(ctrl);
     if (selectedControl == null)
     {
         selectedControl = ctrl;
         selectedControl.SetSelected(true);
     }
 }
        public void AddRadioButton(string text)
        {
            RadioButtonControl ctrl = new RadioButtonControl(text, this);

            radioControls.Add(ctrl);
            radioLayout.Add(ctrl);
            if (selectedControl == null)
            {
                selectedControl = ctrl;
                selectedControl.SetSelected(true);
            }
        }
 public void RadioButtonSelected(RadioButtonControl ctrl)
 {
     selectedControl.SetSelected(false);
     ctrl.SetSelected(true);
     selectedControl = ctrl;
 }
 public void RadioButtonSelected(RadioButtonControl ctrl)
 {
     selectedControl.SetSelected(false);
     ctrl.SetSelected(true);
     selectedControl = ctrl;
 }