private void DetailsButton_Click(object sender, RoutedEventArgs e) { StudentDisplay currentStudent = GetCurrentStudent(sender); MainWindow window = GlobalFunction.GetMainWindow(); window._mainFrame.Navigate(new StudentDetailsPage(currentStudent.ID)); }
private void PunishButton_Click(object sender, RoutedEventArgs e) { StudentDisplay currentStudent = GetCurrentStudent(sender); MainWindow window = GlobalFunction.GetMainWindow(); window._addFrame.Navigate(new AddPunishment(currentStudent.ID)); }
private void DownvotesButton_Click(object sender, RoutedEventArgs e) { StudentDisplay currentStudent = GetCurrentStudent(sender); MainWindow window = GlobalFunction.GetMainWindow(); window._addFrame.Navigate(new AddVote(false, currentStudent)); //StudentsShared.AddVotesToDb(currentStudent.ID, false, "Downvote rapide"); //int currentDownvoteCount = int.Parse(currentStudent.DownvotesCount); //currentDownvoteCount++; //currentStudent.DownvotesCount = currentDownvoteCount.ToString(); }