Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            SaveFileDialog ofd = new SaveFileDialog();

            ofd.Filter = "HTML|*.html";
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                if (BookmarkParser.GenerateHtml(BookmarkParser.ParseHistory(), ofd.FileName))
                {
                    MessageBox.Show("Bookmarks were saved at " + ofd.FileName + "\nNow you can import it to IE or FireFox.");
                }
            }
        }
Пример #2
0
 public Form1()
 {
     InitializeComponent();
     UpdateTree(treeView1.Nodes, BookmarkParser.ParseHistory());
 }