Beispiel #1
0
 private void btnViewReportClass_Click(object sender, RoutedEventArgs e)
 {
     // Show the report dialog for a class using the selected class as the class
     if (lstClasses.SelectedIndex != -1)
     {
         // As usual per analysis windows, we show regularly, not dialog, so they can side-by-side compare.
         ViewClassAnalysisWindow vcaw = new ViewClassAnalysisWindow((Class)lstClasses.SelectedItem);
         vcaw.Show();
     }
     else
     {
         App.Message("Validation Error", "Please select a class to view the report of.");
     }
 }
 private void btnViewClassAnalysis_Click(object sender, RoutedEventArgs e)
 {
     // Cast selected item to a StudentClass and pass the class to a viewclassanalysiswindow
     ViewClassAnalysisWindow vcaw = new ViewClassAnalysisWindow(((StudentClass)lstClassData.SelectedItem).Class);
 }