private void ListViewComments_MouseDoubleClick(object sender, MouseButtonEventArgs e) { this.DialogResult = true; if (this.ListViewComments.SelectedItem != null) { this.m_FlowComment = (YellowstonePathology.YpiConnect.Contract.Flow.FlowComment) this.ListViewComments.SelectedItem; this.Close(); } }
private void ListViewComments_MouseDoubleClick(object sender, MouseButtonEventArgs e) { this.DialogResult = true; if (this.ListViewComments.SelectedItem != null) { this.m_FlowComment = (YellowstonePathology.YpiConnect.Contract.Flow.FlowComment)this.ListViewComments.SelectedItem; this.Close(); } }
public void ButtonAppendComment_Click(object sender, RoutedEventArgs args) { if (this.m_FlowCommentCollection.Count == 0) { YellowstonePathology.YpiConnect.Proxy.FlowSignoutServiceProxy flowSignoutServiceProxy = new Proxy.FlowSignoutServiceProxy(); YellowstonePathology.YpiConnect.Contract.Flow.FlowCommentCollection flowCommentCollection = flowSignoutServiceProxy.GetFlowComments(); foreach (YellowstonePathology.YpiConnect.Contract.Flow.FlowComment flowComment in flowCommentCollection) { this.m_FlowCommentCollection.Add(flowComment); } } LeukemiaLymphomaCommentDialog leukemiaLymphomaCommentDialog = new LeukemiaLymphomaCommentDialog(this.m_FlowCommentCollection); bool?result = leukemiaLymphomaCommentDialog.ShowDialog(); if (result.HasValue && result.Value == true) { List <YellowstonePathology.Shared.Interface.IFlowMarker> flowMarkers = this.PanelSetOrderLeukemiaLymphoma.FlowMarkerCollection.ToList(); YellowstonePathology.Shared.Helper.FlowCommentHelper comment = new YellowstonePathology.Shared.Helper.FlowCommentHelper(this.m_FlowAccessionCollection[0].SpecimenOrderCollection[0].Description, this.PanelSetOrderLeukemiaLymphoma, flowMarkers); YellowstonePathology.YpiConnect.Contract.Flow.FlowComment item = leukemiaLymphomaCommentDialog.SelectedComment; comment.AddComment(item.Category, item.Impression, item.Comment); } }