示例#1
0
        public static ShortlistEditor Open(string id, bool show = true)
        {
            var form = new ShortlistEditor();

            form._shortlist = Shortlist.Open(id);
            if (show)
            {
                form.Show();
            }
            return(form);
        }
示例#2
0
        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.");
            }
        }