public DropDownListPanel(IObjectValueReadWrite aObjectValue)
        {
            mObjectValue = aObjectValue;
            InitializeComponent();

            BackColor            = SystemColors.Control;
            mHolder.ListChanged += MHolder_ListChanged;
            mHolder.add("Current value", mObjectValue.ValueObject, false);
        }
Esempio n. 2
0
        public void                         loadFromXML(XmlTextReader aXMLTextReader)
        {
            var lReader = new XMLAttributeReader(aXMLTextReader);

            Language         = lReader.getAttribute <String>("Language");
            mValueItemHandle = mItemBrowser.getItemHandleByName(lReader.getAttribute <String>("Item"));

            mHolder.clear();
            if (aXMLTextReader.IsEmptyElement == false)
            {
                aXMLTextReader.Read();
                if (aXMLTextReader.Name.Equals("Commands", StringComparison.Ordinal))
                {
                    if (aXMLTextReader.IsEmptyElement == false)
                    {
                        mHolder.loadFromXML(aXMLTextReader, "Comand");
                    }

                    aXMLTextReader.Read();
                }
            }

            if (mHolder.Count == 0)
            {
                mHolder.add("Ok, Dave.", 0, false);
            }
        }