StudentManager/StudentManager/Common/HomeWorkManager.cs
2024-09-11 18:51:52 +08:00

38 lines
737 B
C#

using DryIoc.ImTools;
using StudentManager.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace StudentManager.Common
{
public static class HomeWorkManager
{
public static HomeWork CommonHomeWork { get; set; } = new HomeWork();
public static void Create(StudentInfo student,int lesson, int workNum = 10)
{
HomeWork work = new HomeWork { Lesson = lesson};
foreach(var item in student.ErrorSet.ErrorArray)
{
work.AddHomeWork(item);
}
if (CommonHomeWork.QuestionInfo.Count > 0)
{
work.Append(CommonHomeWork);
}
}
public static void Public()
{
}
}
}