Пример #1
0
        public static ButtonControl GetButtonControl(bool isChoiceSelection)
        {
            if (isChoiceSelection)
            {
                _buttonControlObject = new RadioButton();
            }
            else
            {
                _buttonControlObject = new Button();
            }

            return(_buttonControlObject);
        }
Пример #2
0
    public static ButtonControl GetButtonControl(bool isChoiceSelection)
    {
      if (isChoiceSelection)
        _buttonControlObject = new RadioButton();
      else
        _buttonControlObject = new Button();

      return _buttonControlObject;
    }