Exemplo n.º 1
0
        public void AddBookmark()
        {
            var forma = new Form_AddBookmark(this.Os);

            if (forma.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                var NewItem = forma.bookmarkItem;
                this.settingsService.Object.Set(NewItem.Serialized()); // TODO: Add enshore
                this.ДобавитьЗапись(NewItem);
            }
        }
Exemplo n.º 2
0
        public void EditBookmark(BookmarkItem bookmarkItem)
        {
            var forma = new Form_AddBookmark(this.Os)
            {
                Text         = "Edit bookmark",
                bookmarkItem = bookmarkItem
            };

            if (forma.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                var Id = bookmarkItem.Id;
                bookmarkItem.Set(forma.bookmarkItem);
                bookmarkItem.Id = Id;
                this.settingsService.Object.Set(bookmarkItem.Serialized());
                this.ОбновитьЗапись(bookmarkItem);
            }
        }