private void Button_Click_NextGrid(object sender, RoutedEventArgs e) { Count_Student_Subject_Grid += 5; student_subject_grid d = new student_subject_grid(); d.Show(); this.Close(); }
private void Button_Click_PreviousGrid(object sender, RoutedEventArgs e) { Count_Student_Subject_Grid -= 5; if (Count_Student_Subject_Grid == 0) { Count_Student_Subject_Grid = 5; } student_subject_grid d = new student_subject_grid(); d.Show(); this.Close(); }