public CustomPropertiesEditor(CustomPropertySchema schema, CustomProperties properties, CustomPropertyAppliesTo showPropertiesThatApplyTo) { InitializeComponent(); _properties = properties; _schema = schema; _showPropertiesThatApplyTo = showPropertiesThatApplyTo; propertyGrid.SelectedObject = new CustomPropertyBag(schema, _properties, _showPropertiesThatApplyTo); }
public CustomPropertyBag(CustomPropertySchema schema, CustomProperties properties, CustomPropertyAppliesTo showPropertiesThatApplyTo) { _properties = properties; _schema = schema; _showPropertiesThatApplyTo = showPropertiesThatApplyTo; }
public void CustomPropertiesEditor(CustomProperties properties, CustomPropertyAppliesTo showPropertiesOfType) { AGS.Editor.CustomPropertiesEditor editor = new CustomPropertiesEditor(_agsEditor.CurrentGame.PropertySchema, properties, showPropertiesOfType); editor.ShowDialog(); editor.Dispose(); }