public void SetUp() { List<WixXmlAttribute> attributes = new List<WixXmlAttribute>(); attributes.Add(new WixXmlAttribute("First", "FirstValue", WixXmlAttributeType.Text)); attributes.Add(new WixXmlAttribute("Second", "SecondValue", WixXmlAttributeType.Text)); wixXmlAttributes = new ReadOnlyCollection<WixXmlAttribute>(attributes); descriptor = new WixXmlAttributeTypeDescriptor(wixXmlAttributes); }
/// <summary> /// Redisplays the attributes after they have been changed. /// </summary> public void AttributesChanged() { typeDescriptor = new WixXmlAttributeTypeDescriptor(wixXmlAttributes); propertyGrid.SelectedObject = typeDescriptor; }