예제 #1
0
        Page GetMainPage()
        {
            var hp = new HomePage();
            var nav = new Navigator(hp.Navigation);

            var runner = new DeviceRunner(testAssemblies, nav, new ResultListener(writer));

            var vm = new HomeViewModel(nav, runner);


            hp.BindingContext = vm;

            return new Xamarin.Forms.NavigationPage(hp);
        }
예제 #2
0
        private Page GetMainPage()
        {

            var hp = new HomePage();
            var vm = new HomeViewModel(hp.Navigation, testAssemblies, this);
            
            
            hp.BindingContext = vm;

            return new NavigationPage(hp);
        }