private void ListBoxCaseTypes_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.ListBoxCaseTypes.SelectedItem != null) { string caseType = (string)this.ListBoxCaseTypes.SelectedItem; switch (caseType) { case "Histology": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetHistologyPanelSets(); break; case "Flow Cytometry": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetByCaseType("Flow Cytometry"); break; case "Molecular Genetics": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetByCaseType("Molecular"); break; case "FISH": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetByCaseType("FISH"); break; case "Neogenomics": YellowstonePathology.Business.Facility.Model.NeogenomicsIrvine neo = new Business.Facility.Model.NeogenomicsIrvine(); this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetByFacility(neo); break; case "ARUP": YellowstonePathology.Business.Facility.Model.ARUP arup = new Business.Facility.Model.ARUP(); this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetByFacility(arup); break; case "Reflex Testing": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetReflexTestingPanelSets(); break; case "Pathologist": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetPathologistPanelSets(); break; case "All Orders": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAllActive(); break; } this.NotifyPropertyChanged("PanelSetCollectionView"); } }
private void ListBoxCaseTypes_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (this.ListBoxCaseTypes.SelectedItem != null) { string caseType = (string)this.ListBoxCaseTypes.SelectedItem; switch(caseType) { case "Histology": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetHistologyPanelSets(); break; case "Flow Cytometry": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetByCaseType("Flow Cytometry"); break; case "Molecular Genetics": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetByCaseType("Molecular"); break; case "FISH": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetByCaseType("FISH"); break; case "Neogenomics": YellowstonePathology.Business.Facility.Model.NeogenomicsIrvine neo = new Business.Facility.Model.NeogenomicsIrvine(); this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetByFacility(neo); break; case "ARUP": YellowstonePathology.Business.Facility.Model.ARUP arup = new Business.Facility.Model.ARUP(); this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetByFacility(arup); break; case "Reflex Testing": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetReflexTestingPanelSets(); break; case "Pathologist": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetPathologistPanelSets(); break; case "All Orders": this.m_PanelSetCollectionView = YellowstonePathology.Business.PanelSet.Model.PanelSetCollection.GetAllActive(); break; } this.NotifyPropertyChanged("PanelSetCollectionView"); } }