private void Blackboard_Click(object sender, RoutedEventArgs e) { var problems = new ProblemMapping(ProblemsText.Text); var students = problems.GetFillers(StudentsText.Text); SaveToCsv(problems, students); }
private void ToGradeable_Click(object sender, RoutedEventArgs e) { var problems = new ProblemMapping(ProblemsText.Text); var students = problems.GetFillers(StudentsText.Text); StudentsText.Text = ProblemMapping.ToCsv(students, "\t"); }
private void UpdateDefaultStudents_Click(object sender, RoutedEventArgs e) { var problems = new ProblemMapping(ProblemsText.Text); var students = problems.GetFillers(StudentsText.Text); var defaultStudents = from grade in Grade.FetchAll(problems, students, _allGrades, _relative) select grade.PopulateDefaultGrades(); StudentsText.Text = ProblemMapping.ToCsv(defaultStudents.ToArray(), "\t"); }
private void DropObject(object sender, DragEventArgs e) { var filename = ((string[])e.Data.GetData(DataFormats.FileDrop, true)).FirstOrDefault(); if (filename != null) { using (var processor = new ExcelProcessor(filename)) { var problems = new ProblemMapping(processor.FetchProblems()); var students = problems.GetFillers(processor.FetchStudents()); SaveToCsv(problems, students); } } }