private void rdoWholesale_CheckedChanged(object sender, EventArgs e) { _selectedStatutory = Enums.Statutory.Wholesale; if (Reload && string.Equals(_storedStatutory, Enums.Statutory.Wholesale.ToString(), StringComparison.OrdinalIgnoreCase)) { if (rdoWholesale.Checked == false) { if (ContinueWithSignificantChange(sender, true)) { _generateNewTemplate = true; } } } }
public void PopulateImportantNotices(Enums.Statutory statutory, string importantNoticesUrl, string privacyStatementUrl, string fsgUrl, string termsOfEngagementUrl) { if (!Document.MoveCursorToStartOfBookmark(Constants.WordBookmarks.ImportantNotes)) { return; } Document.UpdateOrCreatePropertyValue(Constants.WordDocumentProperties.StatutoryInformation, statutory.ToString()); //insert stat notices Document.InsertFile(importantNoticesUrl); //in settings Document.InsertPageBreak(); switch (statutory) { case Enums.Statutory.Retail: { Document.InsertFile(fsgUrl); //in settings break; } case Enums.Statutory.Wholesale: { //insert pivacy statement //Document.InsertFile(privacyStatementUrl); //compliance rule change, privacy not required ever. //Document.InsertPageBreak(); Document.InsertFile(termsOfEngagementUrl); //in settings break; } case Enums.Statutory.WholesaleWithRetail: { //insert pivacy statement //Document.InsertFile(privacyStatementUrl); //compliance rule change, privacy not required ever. //Document.InsertPageBreak(); Document.InsertFile(fsgUrl); //in settings Document.InsertPageBreak(); Document.InsertFile(termsOfEngagementUrl); //in settings break; } } }