Esempio n. 1
0
        public PageSegmenter()
        {
            InitializeComponent();

            bookstoreSource        = new BookLineList();
            listingDataView        = new CollectionViewSource();
            listingDataView.Source = bookstoreSource;
            this.DataContext       = listingDataView; // предоставим доступ к коллекции из языка разметки XAML
            listingDataView.View.CurrentChanged += new EventHandler(BookLine_CurrentChanged);

            lineSource = new LineSource();
            lineSource.PSet("randomize", 0);    // отключим случайное упорядочивание

            // Init BookstoreSource
            tbBookPath.Text = DynamicVizSegmenter.Properties.Settings.Default.BookPath;
            BookStorePaths  = tbBookPath.Text;
        }
Esempio n. 2
0
        private CollectionViewSource listingDataView; // представление коллекции BooksLine

        #endregion Fields

        #region Constructors

        public PageSegmenter()
        {
            InitializeComponent();

            bookstoreSource = new BookLineList();
            listingDataView = new CollectionViewSource();
            listingDataView.Source = bookstoreSource;
            this.DataContext = listingDataView; // предоставим доступ к коллекции из языка разметки XAML
            listingDataView.View.CurrentChanged += new EventHandler(BookLine_CurrentChanged);

            lineSource = new LineSource();
            lineSource.PSet("randomize", 0);    // отключим случайное упорядочивание

            // Init BookstoreSource
            tbBookPath.Text = DynamicVizSegmenter.Properties.Settings.Default.BookPath;
            BookStorePaths = tbBookPath.Text;
        }