SetSelected() public method

public SetSelected ( bool selected ) : void
selected bool
return void
コード例 #1
0
 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);
     }
 }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public void RadioButtonSelected(RadioButtonControl ctrl)
 {
     selectedControl.SetSelected(false);
     ctrl.SetSelected(true);
     selectedControl = ctrl;
 }
コード例 #4
0
 public void RadioButtonSelected(RadioButtonControl ctrl)
 {
     selectedControl.SetSelected(false);
     ctrl.SetSelected(true);
     selectedControl = ctrl;
 }