private void Back_to_info_train_Click(object sender, RoutedEventArgs e) { var win = new Info_train(train, user); win.Show(); this.Close(); }
public void Time_go() { if (p < kol) { if (p % 2 == 0) { time_ex = array_ex[kl].Time; this.On_Text.Text = array_ex[kl].Name_ex; this.Image_1.Source = new BitmapImage(new Uri("pack://application:,,,/QuickFitness;component/Resources/AllPic" + array_ex[kl].Img_one)); this.Image_2.Source = new BitmapImage(new Uri("pack://application:,,,/QuickFitness;component/Resources/AllPic" + array_ex[kl].Img_two)); kl++; } dt = new DispatcherTimer(); dt.Interval = TimeSpan.FromSeconds(1); dt.Tick += dtTicker; dt.Start(); p++; } else { var win = new Info_train(train, user); win.Take_Stat(); this.Close(); win.Show(); } }
private void Button_start_Click(object sender, RoutedEventArgs e) { Info_train win = new Info_train(train, user); win.Show(); MainTrainWin wind = (MainTrainWin)Window.GetWindow(this); wind.Close(); }