public static TestCollection GetGradedTests() { TestCollection result = new TestCollection(); TestCollection allTests = TestCollection.GetAllTests(); foreach (Test test in allTests) { if (test is GradedTest == true) { result.Add(test); } } return(result); }
public static TestCollection GetCytochemicalForMicroorganismsTests() { TestCollection result = new TestCollection(); TestCollection allTests = TestCollection.GetAllTests(); foreach (Test test in allTests) { if (test is CytochemicalForMicroorganisms) { result.Add(test); } } return(result); }
public static TestCollection GetIHCTests() { TestCollection result = new TestCollection(); TestCollection allTests = TestCollection.GetAllTests(); foreach (Test test in allTests) { if (test is ImmunoHistochemistryTest == true) { result.Add(test); } } return(result); }
public ObservableCollection <object> GetTestsStartingWithToObjectCollection(string firstLetter) { ObservableCollection <object> result = new ObservableCollection <object>(); List <Test> tests = new List <Test>(); TestCollection allTests = TestCollection.GetAllTests(); foreach (Test test in allTests) { if (test.TestName.Substring(0, 1) == firstLetter) { tests.Add(test); } } tests.Sort(Test.CompareByTestName); foreach (Test test in tests) { result.Add(test); } return(result); }
public TestCollection GetTestsStartingWith(string firstLetter) { TestCollection result = new TestCollection(); List <Test> tests = new List <Test>(); TestCollection allTests = TestCollection.GetAllTests(); foreach (Test test in allTests) { if (test.TestName.Substring(0, 1) == firstLetter) { tests.Add(test); } } tests.Sort(Test.CompareByTestName); foreach (Test test in tests) { result.Add(test); } return(result); }