private void AddNewTestProc() { if (TestTypes.Any(c => c.Name == TestTypeModel.Name)) { return; } TestTypes.Add(TestTypeModel); TestTypeModel = new TestType(); }
private void SetGraph() { if (GradingSystem == null) { return; } foreach (var g in GradingSystem.TestTypes) { TestTypes.Add(new TestForGraph() { Test = Tests.Where(c => c.TestType == g).ToList(), Name = g.Name }); } }