private void propertyEditorButton_Clicked(object sender, EventArgs e) { List <AssetProperty> properties = new List <AssetProperty>(); if (savedProperties != null) { foreach (AssetProperty property in savedProperties) { properties.Add(new AssetProperty(property)); } using (AssetPropertyCollectionEditor dlg = new AssetPropertyCollectionEditor(properties)) { if (dlg.ShowDialog() == DialogResult.OK) { savedProperties = dlg.Properties; } if (dlg.SomethingChanged && !somethingChanged) { setSomethingChanged(); } } } }
private void propertyEditorButton_Clicked(object sender, EventArgs e) { List<AssetProperty> properties = new List<AssetProperty>(); if (savedProperties != null) { foreach (AssetProperty property in savedProperties) { properties.Add(new AssetProperty(property)); } using (AssetPropertyCollectionEditor dlg = new AssetPropertyCollectionEditor(properties)) { if (dlg.ShowDialog() == DialogResult.OK) { savedProperties = dlg.Properties; } if (dlg.SomethingChanged && !somethingChanged) { setSomethingChanged(); } } } }