コード例 #1
0
ファイル: IDataManager.cs プロジェクト: atribolt/RussianLearn
        public Test Update(Tables.Tests t, List <Tables.Questions> q, List <Tables.BadAnswers> b)
        {
            TID    = t.ID;
            Time   = t.Time;
            Access = t.Access;
            Name   = t.Name;

            Questions = q.Select(x => new Question(x, b.Where(z => z.QID == x.ID).ToList())).ToList();

            return(this);
        }
コード例 #2
0
ファイル: IDataManager.cs プロジェクト: atribolt/RussianLearn
 public Test(Tables.Tests t, List <Tables.Questions> q, List <Tables.BadAnswers> b)
 {
     Update(t, q, b);
 }