void bmodo(object sender, EventArgs e) //////トップ画面 { if (t_id == -1) { t_id = -1; Application.Current.Properties["t_id"] = null; if (bac_b != null) { grid3.Children.Remove(bac_b); } var nextPage = new k_Top(); NavigationService.Navigate(nextPage); } else { t_id = -1; Application.Current.Properties["t_id"] = null; if (bac_b != null) { grid3.Children.Remove(bac_b); } var nextPage = new t_top(); NavigationService.Navigate(nextPage); } }
/// <summary> /// 患者が自分の名前のボタンをクリックすると患者用のトップ画面に遷移する /// </summary> void patientTop(object sender, EventArgs e) { Application.Current.Properties["UserName"] = (sender as Button).Content; Application.Current.Properties["User_id"] = (sender as Button).Tag; var nextPage = new k_Top(); NavigationService.Navigate(nextPage); }
void bac(object sender, EventArgs e) { var nextPage = new k_Top(); NavigationService.Navigate(nextPage); if (train == true) { wiimote.Disconnect(); wiimo = false; timer.Stop(); } }
private void back(object sender, RoutedEventArgs e) { var nextPage = new k_Top(); NavigationService.Navigate(nextPage); }