private void LoadMsiDBProperty() { PropertyClass myProp = new PropertyClass(); CustomProperty myproperty = new CustomProperty("Installation Guid", misPackage.GetMsiProperty("ProductCode"), true, true); myProp.Add(myproperty); propertyGrid1.SelectedObject = myProp; //LoadListView("Installation Guid", misPackage.GetMsiProperty("ProductCode")); }
private void LoadResourceProperties(string resource) { PropertyClass myProp = new PropertyClass(); foreach (var item in misPackage.GetResourceProperties(resource)) { CustomProperty myproperty = new CustomProperty(item.Key, item.Value, true, true); myProp.Add(myproperty); } propertyGrid1.SelectedObject = myProp; }