예제 #1
0
        internal SummaryView (SummaryViewModel model)
		{
            _model = model;
		    _model.Navigation = Navigation;
		    BindingContext = _model;
			InitializeComponent();
		}
        /// <summary>
        /// Constructs a new app adding the current assembly to be tested
        /// </summary>
		public App ()
		{
            InitializeComponent ();

            // OnPlatform only reports WinPhone for WinPhone Silverlight, so swap
            // out the background color in code instead
            if(Device.OS == TargetPlatform.Windows)
            {
                Resources["defaultBackground"] = Resources["windowsBackground"];
            }

            _model = new SummaryViewModel();
            MainPage = new NavigationPage(new SummaryView(_model));
#if !WINDOWS_PHONE_APP
            AddTestAssembly(Assembly.GetCallingAssembly());
#endif
        }
예제 #3
0
 public App()
 {
     _model = new SummaryViewModel();
     MainPage = new NavigationPage(new SummaryView(_model));
     AddTest(Assembly.GetCallingAssembly());
 }
예제 #4
0
		public SummaryView (SummaryViewModel model)
		{
		    model.Navigation = Navigation;
		    BindingContext = model;
			InitializeComponent ();
		}