private void ListBoxSpecimen_SelectionChanged(object sender, SelectionChangedEventArgs e) { this.m_GrossDescription = null; if (this.ListBoxSpecimenOrders.SelectedItem != null) { YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = (YellowstonePathology.Business.Specimen.Model.SpecimenOrder) this.ListBoxSpecimenOrders.SelectedItem; if (string.IsNullOrEmpty(specimenOrder.SpecimenId) == false) { this.m_DictationTemplate = Gross.DictationTemplateCollection.Instance.GetClone(specimenOrder.SpecimenId); if (this.m_DictationTemplate.TemplateName != "Template Not Found.") { this.m_GrossDescription = this.m_DictationTemplate.BuildResultText(specimenOrder, this.m_AccessionOrder, this.m_SystemIdentity); this.NotifyPropertyChanged(string.Empty); this.TextBoxGrossDescription.Focus(); this.SelectNextInput(0); } } } this.NotifyPropertyChanged(string.Empty); }
private void ListBoxSpecimen_SelectionChanged(object sender, SelectionChangedEventArgs e) { this.m_GrossDescription = null; if(this.ListBoxSpecimenOrders.SelectedItem != null) { YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = (YellowstonePathology.Business.Specimen.Model.SpecimenOrder)this.ListBoxSpecimenOrders.SelectedItem; if(string.IsNullOrEmpty(specimenOrder.SpecimenId) == false) { this.m_DictationTemplate = this.m_DictationTemplateCollection.GetTemplate(specimenOrder.SpecimenId); if(this.m_DictationTemplate is YellowstonePathology.UI.Gross.TemplateNotFound == false) { this.m_GrossDescription = this.m_DictationTemplate.BuildResultText(specimenOrder, this.m_AccessionOrder, this.m_SystemIdentity); this.NotifyPropertyChanged(string.Empty); this.TextBoxGrossDescription.Focus(); this.SelectNextInput(0); } } } this.NotifyPropertyChanged(string.Empty); }