Exemplo n.º 1
0
        private void editToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FavouriteWindow fw = new FavouriteWindow();

            fw.IsEdit = true;
            Favourite fav = (Favourite)this.favouriteListBox.SelectedItem;
            fw.Favourite = fav;
            fw.Url = fav.Url;
            fw.FavName = fav.Name;
            fw.ShowDialog();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Adds the favourite.
 /// </summary>
 private void AddFavourite()
 {
     FavouriteWindow fw = new FavouriteWindow();
     fw.Url = this.urlTextBox.Text;
     fw.ShowDialog();
 }