public static Test GetWetIron() { Test wetIron = TestCollectionInstance.GetClone("115"); wetIron.UseWetProtocol = true; return(wetIron); }
public static ObservableCollection <object> GetTestsStartingWithToObjectCollection(string firstLetter, bool includeWetProtocols) { ObservableCollection <object> result = new ObservableCollection <object>(); List <Test> tests = new List <Test>(); Test wetIron = TestCollectionInstance.GetWetIron(); if (wetIron.TestName.ToUpper().Substring(0, 1) == firstLetter.ToUpper()) { tests.Add(wetIron); } foreach (Test test in TestCollectionInstance.Instance) { if (test.TestName.ToUpper().Substring(0, 1) == firstLetter.ToUpper()) { if (test.TestId != "177") // CD99 { tests.Add(TestCollectionInstance.GetClone(test.TestId)); } } } tests.Sort(Test.CompareByTestName); foreach (Test test in tests) { if (test.Active == true) { result.Add(test); } } return(result); }
public static Test GetClone(string testId) { Test result = null; Test test = TestCollectionInstance.Instance.FirstOrDefault(t => t.TestId == testId); if (test != null) { result = TestCollectionInstance.GetTestClone(test); } return(result); }
public static TestCollection GetCytochemicalForMicroorganismsTests() { TestCollection result = new TestCollection(); foreach (Test test in TestCollectionInstance.Instance) { if (test is CytochemicalForMicroorganisms) { result.Add(TestCollectionInstance.GetTestClone(test)); } } return(result); }
public static TestCollection GetGradedTests() { TestCollection result = new TestCollection(); foreach (Test test in TestCollectionInstance.Instance) { if (test is GradedTest == true) { result.Add(TestCollectionInstance.GetTestClone(test)); } } return(result); }
public static TestCollection GetIHCTests() { TestCollection result = new TestCollection(); foreach (Test test in TestCollectionInstance.Instance) { if (test is ImmunoHistochemistryTest == true) { result.Add(TestCollectionInstance.GetTestClone(test)); } } return(result); }
public static void Reload() { TestCollectionInstance.instance = TestCollectionInstance.Load(); }