private void MainWindow_Loaded(object sender, RoutedEventArgs e) { YellowstonePathology.YpiConnect.Proxy.WebServiceAccountServiceProxy webServiceAccountServiceProxy = new YpiConnect.Proxy.WebServiceAccountServiceProxy(); if (webServiceAccountServiceProxy.Ping() == true) { SignInPage signInPage = new SignInPage(); this.MainFrame.Navigate(signInPage); UserInteractionMonitor.Instance.TimedOut += new EventHandler(TimedOut); } else { MessageBox.Show("The webservice is not responding."); } }
private void ButtonSignIn_Click(object sender, RoutedEventArgs e) { SignInPage signInPage = new SignInPage(); ApplicationNavigator.ApplicationContentFrame.NavigationService.Navigate(signInPage); }