private void ButtonAddDotReview_Click(object sender, RoutedEventArgs e) { if (this.ListBoxResults.SelectedItem != null) { Type objectType = this.ListBoxResults.SelectedItem.GetType(); if (typeof(YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology).IsAssignableFrom(objectType) == true) { DotReviewCommentDialog dlg = new DotReviewCommentDialog(); dlg.ShowDialog(); if (dlg.DialogResult.HasValue && dlg.DialogResult.Value) { this.m_CytologyUI.OrderDotReviewPanelOrder(dlg.Comment, (YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology) this.ListBoxResults.SelectedItem); } } } }
private void ButtonAddDotReview_Click(object sender, RoutedEventArgs e) { if (this.ListBoxResults.SelectedItem != null) { Type objectType = this.ListBoxResults.SelectedItem.GetType(); if (typeof(YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology).IsAssignableFrom(objectType) == true) { DotReviewCommentDialog dlg = new DotReviewCommentDialog(); dlg.ShowDialog(); if (dlg.DialogResult.HasValue && dlg.DialogResult.Value) { this.m_CytologyUI.OrderDotReviewPanelOrder(dlg.Comment, (YellowstonePathology.Business.Test.ThinPrepPap.PanelOrderCytology)this.ListBoxResults.SelectedItem); } } } }