コード例 #1
0
        private void Blackboard_Click(object sender, RoutedEventArgs e)
        {
            var problems = new ProblemMapping(ProblemsText.Text);
            var students = problems.GetFillers(StudentsText.Text);

            SaveToCsv(problems, students);
        }
コード例 #2
0
        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");
        }
コード例 #3
0
        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");
        }
コード例 #4
0
        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);
                }
            }
        }