public ReadOnlyEvent(AbstractEvent inheritedEvent) : base(inheritedEvent) { this.inheritedEvent = inheritedEvent; foreach (AbstractProperty inheritedProperty in inheritedEvent.Properties) { ReadOnlyProperty localProperty = new ReadOnlyProperty(inheritedProperty); AddProperty(localProperty); } header = new Header(Plugin.Header, Properties, false); }
public ReadOnlyAction(AbstractAction inheritedAction) : base(inheritedAction) { this.inheritedAction = inheritedAction; foreach (AbstractProperty inheritedProperty in inheritedAction.Properties) { ReadOnlyProperty localProperty = new ReadOnlyProperty(inheritedProperty); AddProperty(localProperty); } header = new Header(Plugin.Header, Properties, false); }