コード例 #1
0
ファイル: ExerciseWindow.xaml.cs プロジェクト: k-ola/Czytam
        private void NextExerciseButton_Click(object sender, RoutedEventArgs e)
        {
            ExerciseWindow nextExerciseWindow = new ExerciseWindow(_user, _exerciseNumber + 1, _isOpenedFromModuleWindow);

            nextExerciseWindow.Show();
            this.Close();
        }
コード例 #2
0
 private void ExerciseButton_Click(object sender, RoutedEventArgs e)
 {
     if (int.TryParse((sender as Button)?.Content.ToString().Replace(GlobalVariables.exerciseNumberPartialText, ""), out int exerciseNumber))
     {
         ExerciseWindow exerciseWindow = new ExerciseWindow(_user, exerciseNumber, _isOpenedFromModuleWindow);
         exerciseWindow.Show();
         this.Close();
     }
 }