public EventCommandModel(EventCommandAttribute attr, QPP.Command.ICommand command) { Name = attr.Name; EventName = attr.EventName; Target = attr.Target; Command = command; }
static EventCommandAttribute() { LoadedEvent = new EventCommandAttribute("LoadedEvent", "Loaded"); ClosingEvent = new EventCommandAttribute("ClosingEvent", "Closing"); ClosedEvent = new EventCommandAttribute("ClosedEvent", "Closed"); SerializingEvent = new EventCommandAttribute("SerializingEvent", "Serializing"); DeserializingEvent = new EventCommandAttribute("DeserializingEvent", "Deserializing"); }