Exemple #1
0
 public BookView(ScratchBook book, Settings appSettings)
 {
     AppSettings = appSettings;
     Book        = book;
     InitComponent();
     _currentPage = book.Pages.Count > 0 ? book.Pages.Count - 1 : 0;
     UpdateViewLabels();
     UpdateTextBox();
 }
Exemple #2
0
        public static int RunSearch(Window parent, ScratchBook book, Settings settings)
        {
            using (TitleSearchWindow window = new TitleSearchWindow(book, settings))
            {
                switch (window.ShowModal(parent))
                {
                case ModalResult.OK:
                    return(window.SelectedItem.Value);

                default:
                    return(-1);
                }
            }
        }
Exemple #3
0
        int _searchResultsStoreCount;         // asinine results store

        public TitleSearchWindow(ScratchBook book, Settings appSettings) : base("GTK ScratchPad")
        {
            Book        = book;
            AppSettings = appSettings;
            InitComponent();
        }