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(); }
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(); }