public void RemoveAllAttempts() { foreach (var att in AttemptsControl.Get(Type).Where(q => q.IdQuestion == Id)) { AttemptsControl.Remove(att); } }
private void GetAttempts() { var att = AttemptsControl.Get(Type); var attempts = att.Where(x => x.IdQuestion == Id); foreach (var item in attempts) { Tries.Add(new DateTry(item.Score, item.When)); } }