Esempio n. 1
0
        public static ButtonControl GetButtonControl(bool isChoiceSelection)
        {
            if (isChoiceSelection)
            {
                _buttonControlObject = new RadioButton();
            }
            else
            {
                _buttonControlObject = new Button();
            }

            return(_buttonControlObject);
        }
    public static ButtonControl GetButtonControl(bool isChoiceSelection)
    {
      if (isChoiceSelection)
        _buttonControlObject = new RadioButton();
      else
        _buttonControlObject = new Button();

      return _buttonControlObject;
    }