Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            comicQueryManager = FindResource("comicQueryManager") as ComicQueryManager;
            comicQueryManager.UpdateQueryResults(comicQueryManager.AvailableQueries[0]);
            Title = title;
        }
        public MainWindow()
        {
            InitializeComponent();

            comicQueryManager = FindResource("comicQueryManager") as ComicQueryManager;
            comicQueryManager.UpdateQueryResults(comicQueryManager.AvailableQueries[0]);
            Title = title;
        }
        public QueryDetailZoom(ComicQuery comicQuery)
        {
            InitializeComponent();

            comicQueryManager = FindResource("comicQueryManager") as ComicQueryManager;

            if (comicQuery != null)
            {
                comicQueryManager.UpdateQueryResults(comicQuery);
                Title = comicQueryManager.Title;
            }
        }
Exemplo n.º 4
0
        public QueryDetailZoom(ComicQuery comicQuery)
        {
            InitializeComponent();

            comicQueryManager = FindResource("comicQueryManager") as ComicQueryManager;

            if (comicQuery != null)
            {
                comicQueryManager.UpdateQueryResults(comicQuery);
                Title = comicQueryManager.Title;
            }
        }
Exemplo n.º 5
0
        private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (e.AddedItems.Count >= 1 && e.AddedItems[0] is ComicQuery)
            {
                comicQueryManager.CurrentQueryResults.Clear();
                comicQueryManager.UpdateQueryResults(e.AddedItems[0] as ComicQuery);
                Title = title + ": " + comicQueryManager.Title;

                ComicQuery query = e.AddedItems[0] as ComicQuery;
                if (query.Title == "All comics in the collection")
                {
                    QueryDetailZoom allComics = new QueryDetailZoom(query);
                    allComics.Show();
                }
            }
        }