Beispiel #1
0
        private BookViewModel m_current;                              // 当前作品。

        public BooksView()
        {
            this.InitializeComponent();

            m_story   = new Story();
            m_list    = new ObservableCollection <BookViewModel>();
            m_general = new WritableTextBlock();

            Books.ItemsSource = m_list;

            FillExistingBooks(m_story, m_list);
            SetBookCount(m_list.Count);
        }