public Section(string description, string title, string identifier, string buttonLabel, SimpleGDPR.ButtonClickDelegate onButtonClicked) { this.description = description; this.title = title; this.identifier = identifier; this.buttonLabel = buttonLabel; this.onButtonClicked = onButtonClicked; }
public GDPRConsentDialog AddSectionWithButton(SimpleGDPR.ButtonClickDelegate onButtonClicked, string title, string description = null, string buttonLabel = null) { if (onButtonClicked == null) { Output.WriteLine("Error: 'GDPR.onButtonClicked' was empty!"); return(this); } return(AddSection(new Section(description, title, null, true, buttonLabel, onButtonClicked))); }