using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace LogicalPaging
{
    public partial class App : Application
    {
        public App()
        {
#if SILVERLIGHT
            InitializeComponent();
#endif
            this.Startup += this.Application_Startup;
        }

        private void Application_Startup(object sender, StartupEventArgs e)
        {
            var mainVisual = new MainPage();

            // Uncomment this to see demo illustrating logical paging on the server.
            // var mainVisual = new ServerSidePaging();

#if SILVERLIGHT
            this.RootVisual = mainVisual;
#else
            this.MainWindow = new Window { Content = mainVisual, Width = 800, Height = 600 };
            this.MainWindow.Show();
#endif
        }
    }
}
