public void AddQuerstionInTest(Querstion q, string Sname, string Tname) { foreach (Subject s in subj) { if (s.subject == Sname) { foreach (Test t in s.tests) { if (t.tName == Tname) { t.AddQuerstion(q); } } } } SaveData(); }
public void AddQuerstion(Querstion q) { querstions.Add(q); }