Exemple #1
0
        //add to favorits
        private void toolStripButton8_Click(object sender, EventArgs e)
        {
            if (getCurrentBrowser().Address != "")
            {
                OnBrowserBeforeShowDialog();

                AddFavorites dlg = new AddFavorites(getCurrentBrowser().Address);
                DialogResult res = dlg.ShowDialog();

                if (res == DialogResult.OK)
                {
                    if (dlg.favFile == "Favorites")
                    {
                        addFavorit(getCurrentBrowser().Address, dlg.favName);
                    }
                    else
                    {
                        addLink(getCurrentBrowser().Address, dlg.favName);
                    }
                }
                dlg.Close();

                OnBrowserAfterShowDialog();
            }
        }
Exemple #2
0
//add to favorits
      private void addToFavoritsToolStripMenuItem_Click(object sender, EventArgs e)
      {
          if (getCurrentBrowser().Url != null)
          {
              AddFavorites dlg = new AddFavorites(getCurrentBrowser().Url.ToString());
              DialogResult res = dlg.ShowDialog();

              if (res == DialogResult.OK)
              {
                  if (dlg.favFile == "Favorites")
                  {
                      addFavorit(getCurrentBrowser().Url.ToString(), dlg.favName);
                  }
                  else
                  {
                      addLink(getCurrentBrowser().Url.ToString(), dlg.favName);
                  }
              }
              dlg.Close();
          }
      }
 //add to favorites
        private void addToFavoritesToolStripMenuItem_Click(object sender, EventArgs e)
        {   
            AddFavorites dlg = new AddFavorites(historyTreeView.SelectedNode.Text);
             DialogResult res = dlg.ShowDialog();
                if (res == DialogResult.OK)
                {
                    if (dlg.favFile == "Favorites")
                        addFavorit(getCurrentBrowser().Url.ToString(), dlg.favName);
                    else addLink(getCurrentBrowser().Url.ToString(), dlg.favName);
                   
                    deleteHistory();
                }
                dlg.Close();

                
        }
        //add to favorits
        private void toolStripButton8_Click(object sender, EventArgs e)
        {
            if (getCurrentBrowser().Url != null)
            {
                AddFavorites dlg = new AddFavorites(getCurrentBrowser().Url.ToString());
                DialogResult res = dlg.ShowDialog();

                if (res == DialogResult.OK)
                {
                    if (dlg.favFile == "Favorites")
                        addFavorit(getCurrentBrowser().Url.ToString(), dlg.favName);
                    else addLink(getCurrentBrowser().Url.ToString(), dlg.favName);
                }
                dlg.Close();
            }

        }