Ejemplo n.º 1
0
		private void ShowMainView()
		{
			View = new LoadingView();
			SettingsView.GetInstance().Connect(() =>
			                                   	{
			                                   		var view = new HiliteView();
			                                   		ApplicationBar = view.ApplicationBar;
			                                   		View = view;
			                                   	}, View as LoadingView);

		}
Ejemplo n.º 2
0
		private void RetryClick(object sender, RoutedEventArgs e)
		{
			var page = App.GetCurrentPage() as ViewContainerPage;
			if(page != null)
			{
				page.View = new LoadingView();
				SettingsView.GetInstance().Connect(() =>
				                                   	{
				                                   		var view = new HiliteView();
				                                   		page.View = view;
				                                   		page.ApplicationBar = view.ApplicationBar;
				                                   	}, page.View as LoadingView);

			}
		}
Ejemplo n.º 3
0
		public HilitePage()
		{
			InitializeComponent();
			DataContext = this;
			if (!IsolatedStorageSettings.ApplicationSettings.Contains("userID"))
			{
				View = new InitialView();
			}
			else
			{
				View = new LoadingView();
				SettingsView.GetInstance().Connect(() =>
				                                   	{
				                                   		var view = new HiliteView();
				                                   		ApplicationBar = view.ApplicationBar;
				                                   		View = view;
				                                   	}, View as LoadingView);
			}
		}