Example #1
0
        public static void Load(XmlNode valueDescNode,
                                Dictionary <string, VdfValueDesc> valueDescTable)
        {
            VdfAsciiValueDesc valueDesc = VdfValueDesc.Load <VdfAsciiValueDesc>(valueDescNode,
                                                                                valueDescTable);

            if (valueDesc == null)
            {
                return;
            }
            valueDescTable.Add(valueDesc.Name, valueDesc);
        }
Example #2
0
        protected override void UpdateUI()
        {
            base.UpdateUI();

            valDesc = Entity <VdfAsciiValueDesc>();
            if (valDesc != null)
            {
                textBoxName.Text = valDesc.Name;
                OldName          = textBoxName.Text;

                textBoxName.Enabled = (valDesc.Owners.Count == 0);
            }
        }