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

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

      return _textControlObject;
    }