Exemple #1
0
        private void NextLessonButton_Click(object sender, RoutedEventArgs e)
        {
            LessonWindow lessonWindow = new LessonWindow(_user, _lessonService.GetLessonByUserAndExerciseNumber(_user, _exerciseNumber).lesson_number + 1);

            lessonWindow.Show();
            this.Close();
        }
Exemple #2
0
 private void LessonButton_Click(object sender, RoutedEventArgs e)
 {
     if (int.TryParse((sender as Button)?.Content.ToString().Replace(GlobalVariables.lessonNumberPartialText, ""), out int lessonNumber))
     {
         LessonWindow lessonWindow = new LessonWindow(_user, lessonNumber);
         lessonWindow.Show();
         this.Close();
     }
 }