Ejemplo n.º 1
0
        public static TextControl GetTextControl(bool isRuntimeEditable)
        {
            if (isRuntimeEditable)
            {
                _textControlObject = new TextBox();
            }
            else
            {
                _textControlObject = new Label();
            }

            return(_textControlObject);
        }
Ejemplo n.º 2
0
    public static TextControl GetTextControl(bool isRuntimeEditable)
    {
      if (isRuntimeEditable)
        _textControlObject = new TextBox();
      else
        _textControlObject = new Label();

      return _textControlObject;
    }