private void ListBoxCodes_MouseDoubleClick(object sender, MouseButtonEventArgs e) { ListBox listBox = (ListBox)sender; Business.Billing.Model.ICDCode icdCode = (Business.Billing.Model.ICDCode)listBox.SelectedItem; this.AddICD9Code(icdCode.Code, 1); }
private void HyperlinkScanICD10_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrEmpty(this.m_AccessionOrder.SpecialInstructions) == false) { for (int i = 0; i < this.ListBoxCodeCategories.Items.Count; i++) { Business.Billing.Model.ICDCode icdCode = (Business.Billing.Model.ICDCode) this.ListBoxCodeCategories.Items[i]; if (string.IsNullOrEmpty(icdCode.Code) == false) { if (this.AccessionOrder.SpecialInstructions.Contains(icdCode.Code)) { if (this.m_AccessionOrder.ICD9BillingCodeCollection.CodeExists(icdCode.Code) == false) { this.AddICD9Code(icdCode.Code, 1); } } } } } }