예제 #1
0
        private void DetailsButton_Click(object sender, RoutedEventArgs e)
        {
            StudentDisplay currentStudent = GetCurrentStudent(sender);
            MainWindow     window         = GlobalFunction.GetMainWindow();

            window._mainFrame.Navigate(new StudentDetailsPage(currentStudent.ID));
        }
예제 #2
0
        private void PunishButton_Click(object sender, RoutedEventArgs e)
        {
            StudentDisplay currentStudent = GetCurrentStudent(sender);
            MainWindow     window         = GlobalFunction.GetMainWindow();

            window._addFrame.Navigate(new AddPunishment(currentStudent.ID));
        }
예제 #3
0
        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();
        }