Esempio n. 1
0
        private void btnBookmark_Click(object sender, EventArgs e)
        {
            BookmarkDetails bookmarkEditForm = new BookmarkDetails(CreateOrEdit.Create);
            Bookmark        newBookmark      = new Bookmark(tbSearchFor.Text, tbReplaceWith.Text, tbFilePattern.Text, "");

            bookmarkEditForm.Bookmark = newBookmark;
            if (bookmarkEditForm.ShowDialog() == DialogResult.OK)
            {
                if (!BookmarkLibrary.Instance.Bookmarks.Contains(newBookmark))
                {
                    BookmarkLibrary.Instance.Bookmarks.Add(newBookmark);
                    BookmarkLibrary.Save();
                }
            }
        }
Esempio n. 2
0
		private void btnBookmark_Click(object sender, EventArgs e)
		{
			BookmarkDetails bookmarkEditForm = new BookmarkDetails(CreateOrEdit.Create);
			Bookmark newBookmark = new Bookmark(tbSearchFor.Text, tbReplaceWith.Text, tbFilePattern.Text, "");
			bookmarkEditForm.Bookmark = newBookmark;
			if (bookmarkEditForm.ShowDialog() == DialogResult.OK)
			{
				if (!BookmarkLibrary.Instance.Bookmarks.Contains(newBookmark))
				{
					BookmarkLibrary.Instance.Bookmarks.Add(newBookmark);
					BookmarkLibrary.Save();
				}
			}			
		}