public override DialogResult CreateContent(IWin32Window dialogOwner, ISmartContent newContent) { IBlogContext blogContext = dialogOwner as IBlogContext; if (blogContext != null) _currentBlogId = blogContext.CurrentAccountId; TagContext context = new TagContext(newContent, Options, _currentBlogId); using (TagForm form = new TagForm(context)) { DialogResult result = form.ShowDialog(dialogOwner); if (result == DialogResult.OK) { context.Tags = form.Tags; context.CurrentProvider = form.TagProvider; context.AddTagsToHistory(form.Tags); } return result; } }
public override DialogResult CreateContent(IWin32Window dialogOwner, ISmartContent newContent) { IBlogContext blogContext = dialogOwner as IBlogContext; if (blogContext != null) { _currentBlogId = blogContext.CurrentAccountId; } TagContext context = new TagContext(newContent, Options, _currentBlogId); using (TagForm form = new TagForm(context)) { DialogResult result = form.ShowDialog(dialogOwner); if (result == DialogResult.OK) { context.Tags = form.Tags; context.CurrentProvider = form.TagProvider; context.AddTagsToHistory(form.Tags); } return(result); } }