Esempio n. 1
0
        protected virtual void FillBrowseControls()
        {
            var ic = GetBrowseControl() as Label;

            if (ic == null)
            {
                return;
            }

            var setting = this.Field.FieldSetting as ChoiceFieldSetting;

            if (setting == null)
            {
                return;
            }

            var data = this.GetData() as List <string>;

            if (data == null)
            {
                return;
            }

            var displayedItems = new ChoiceOptionValueList <string>(data, setting, this.SelectedValueType.Equals(SelectedValueTypes.Value));

            ic.Text = displayedItems.ToString();
        }
Esempio n. 2
0
        protected virtual void FillBrowseControls()
        {
            var ic = GetBrowseControl() as Label;
            if (ic == null) 
                return;

            var setting = this.Field.FieldSetting as ChoiceFieldSetting;
            if (setting == null)
                return;

            var data = this.GetData() as List<string>;
            if (data == null)
                return;

            var displayedItems = new ChoiceOptionValueList<string>(data, setting, this.SelectedValueType.Equals(SelectedValueTypes.Value));
            ic.Text = displayedItems.ToString();
        }