示例#1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            //            SetMainWindow(new LoginWindowControl());

            MatchSelectionWindow window = new MatchSelectionWindow();

            IVirtualListProvider <Team> customerProvider = new TeamProvider();

            customerProvider.CreateMainList();

            MatchSelectionWindowModel <Team> model = new MatchSelectionWindowModel <Team>
            {
                AutoComboSource = new AsyncVirtualizingCollection <Team>(customerProvider, 100, 300 * 1000)
            };

            window.DataContext = model;

            SetMainWindow(window);
        }