示例#1
0
        private void buttonNew_Click(object sender, RoutedEventArgs e)
        {
            iDnaBookmark item = new iDnaBookmark("new item", "new url");
            var          list = iDnaBookmarkList.Instance;

            list.InsertNew(item);
            list.SelectedItem = item;
        }
示例#2
0
        private void NewBookMarkWindow_Loaded(object sender, RoutedEventArgs e)
        {
            if (_item == null)
            {
                _item = new iDnaBookmark("Your bookmark title", "your bookmark url");
            }

            this.DataContext = _item;
        }