Beispiel #1
0
        public static Test GetWetIron()
        {
            Test wetIron = TestCollectionInstance.GetClone("115");

            wetIron.UseWetProtocol = true;
            return(wetIron);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
        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);
        }
Beispiel #6
0
        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);
        }
Beispiel #7
0
 public static void Reload()
 {
     TestCollectionInstance.instance = TestCollectionInstance.Load();
 }