示例#1
0
		public ListItem Insert(int index, string label, string value, string imageName, XmlNode parameterNode)
		{
			ListItem item = new ListItem();
			item.label = label;
			item.value = value;
			item.imageName = imageName;
			item.parameterNode = parameterNode;
			item.enabled = true;
			Insert(index, item);
			return item;
		}
示例#2
0
		public ListItem Add(string label, string value, string imageName, XmlNode parameterNode, bool enabled)
		{
			ListItem item = new ListItem();
			item.label = label;
			item.value = value;
			item.imageName = imageName;
			item.parameterNode = parameterNode;
			item.enabled = enabled;
			Add(item);
			return item;
		}
示例#3
0
        static bool m_fHandlingClick = false; // prevent multiple simultaneous OnClick operations.

        #endregion Fields

        #region Constructors

        public ListPropertyChoice( Mediator mediator, ListItem listItem, IUIAdapter adapter, ChoiceGroup parent)
            : base(mediator,  adapter, parent)
        {
            m_listItem = listItem;
        }
示例#4
0
		private void AddItemHelper(string label)
		{
			var doc = new XmlDocument();
			var li = new ListItem();
			li.label = label;
			li.enabled = true;
			li.value = label;
			li.imageName = "iconName";
			li.parameterNode = doc.CreateElement(label);

			var listPropChoice = new ListPropertyChoice(m_mediator, li, m_adapter, this);
			Add(listPropChoice);
		}
示例#5
0
		private void AddTabHelper(string label, string val)
		{
			var doc = new XmlDocument();
			ListItem li = new ListItem();
			li.label = label;
			li.enabled = true;
			li.value = val;
			li.imageName = "iconName";

			// <parameters><panels><listPanel listId="controlName"></panels></parameters>
			doc = new XmlDocument();
			var parametersNode = doc.CreateElement("parameters");
			var panelsNode = doc.CreateElement("panels");
			var listPanelNode = doc.CreateElement("listPanel");
			listPanelNode.SetAttribute("listId", label);
			panelsNode.AppendChild(listPanelNode);
			parametersNode.AppendChild(panelsNode);

			li.parameterNode = parametersNode;

			var listPropChoice = new ListPropertyChoice(m_mediator, li, m_adapter, this);
			Add(listPropChoice);
		}