public class TagContentSource : ContentSource
{
public override DialogResult CreateContent(IWin32Window dialogOwner, ref string newContent)
{
using (InsertTags tagForm = new InsertTags(new TagContext(base.Options)))
{
DialogResult formResult = tagForm.ShowDialog();
if (formResult == DialogResult.OK)
{
TagContext context = new TagContext(base.Options);
context.TagListTemplate = tagForm.TagListTemplate;
context.TagTemplate = tagForm.TagTemplate;
context.TagTemplateType = tagForm.TagTemplateType;
newContent = tagForm.GetTags();
}
return formResult;
}
}