public static ShortlistEditor Open(string id, bool show = true) { var form = new ShortlistEditor(); form._shortlist = Shortlist.Open(id); if (show) { form.Show(); } return(form); }
private void DropDownItem_Click(object sender, EventArgs e) { var toolStripMenuItem = (ToolStripMenuItem)sender; try { Crawl(Shortlist.Open(toolStripMenuItem.Name)); } catch (UnexpectedPageFormatException) { MessageBox.Show("Unable to create a shortlist for this page."); } }