コード例 #1
0
		public FieldControlChoiceItem(SPChoiceFieldInfo fieldInfo)
			: base()
		{
			if (fieldInfo == null)
				return;

			InitControls(fieldInfo);
		}
コード例 #2
0
		private void InitControls(SPChoiceFieldInfo fieldInfo)
		{
			this.comboBoxChoice = new ComboBox();

			this.comboBoxChoice.DropDownStyle = ComboBoxStyle.DropDownList;
			this.comboBoxChoice.Items.Clear();

			//should only happen if called from the internal constructor
			if (fieldInfo == null)
				return;

			PopulateComboControl(fieldInfo.Values, fieldInfo.DefaultValue);
		}
コード例 #3
0
		private void InitControls(SPChoiceFieldInfo fieldInfo)
		{
			this.panel = new FlowLayoutPanel();
			this.panel.AutoScroll = true;

			//should only happen if called from the internal constructor
			if (fieldInfo == null)
				return;

			this.panel.Height = 0;
			this.panel.VerticalScroll.Enabled = true;
			;

			foreach (string choice in fieldInfo.Values)
			{
				AddCheckBox(choice);
			}

			this.panel.Height += 5;
		}
コード例 #4
0
		public FieldControlMultiChoiceItem(SPChoiceFieldInfo fieldInfo)
			: base()
		{
			InitControls(fieldInfo);
		}