protected override void OnVisibleChanged(EventArgs e) { if (!Visible) { _context.AddTagsToHistory(tagEditor.Tags); } base.OnVisibleChanged(e); LayoutHelper.FitControlsBelow(0, sidebarHeader); }
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); } }