Esempio n. 1
0
        private void Back_to_info_train_Click(object sender, RoutedEventArgs e)
        {
            var win = new Info_train(train, user);

            win.Show();
            this.Close();
        }
Esempio n. 2
0
        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();
            }
        }
Esempio n. 3
0
        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();
        }