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; }
private void NewBookMarkWindow_Loaded(object sender, RoutedEventArgs e) { if (_item == null) { _item = new iDnaBookmark("Your bookmark title", "your bookmark url"); } this.DataContext = _item; }