Пример #1
0
        //--------------------------------------------------------------
        #region Methods
        //--------------------------------------------------------------

        /// <inheritdoc/>
        protected override void OnLoad()
        {
            base.OnLoad();

            var dropDownStyle = DropDownStyle;

            if (!string.IsNullOrEmpty(dropDownStyle))
            {
                _dropDown = new DropDown(this)
                {
                    Style = dropDownStyle,
                };
            }
        }
Пример #2
0
    /// <inheritdoc/>
    protected override void OnUnload()
    {
      if (_dropDown != null)
      {
        _dropDown.Close();
        _dropDown = null;
      }

      base.OnUnload();
    }
Пример #3
0
    //--------------------------------------------------------------
    #region Methods
    //--------------------------------------------------------------

    /// <inheritdoc/>
    protected override void OnLoad()
    {
      base.OnLoad();

      var dropDownStyle = DropDownStyle;
      if (!string.IsNullOrEmpty(dropDownStyle))
      {
        _dropDown = new DropDown(this)
        {
          Style = dropDownStyle,
        };
      }
    }