private void ListBoxBlocksMouseDownTimer_Tick(object sender, EventArgs e)
        {
            this.m_ListBoxBlocksMouseDownTimer.Stop();

            if (this.ListBoxBlocks.SelectedItem != null)
            {
                string aliquotOrderId = ((XElement)this.ListBoxBlocks.SelectedItem).Element("AliquotOrderId").Value;
                YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_SpecimenOrder.AliquotOrderCollection.GetByAliquotOrderId(aliquotOrderId);

                YellowstonePathology.UI.CustomEventArgs.SpecimenOrderAliquotOrderReturnEventArgs specimenOrderAliquotOrderReturnEventArgs = new CustomEventArgs.SpecimenOrderAliquotOrderReturnEventArgs(this.m_SpecimenOrder, aliquotOrder);
                this.ShowBlockOptions(this, specimenOrderAliquotOrderReturnEventArgs);
            }
        }
        private void ButtonStains_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListBoxBlocks.SelectedItem != null)
            {
                if (this.m_AccessionOrder.PanelSetOrderCollection.HasSurgical() == true)
                {
                    string aliquotOrderId = ((XElement)this.ListBoxBlocks.SelectedItem).Element("AliquotOrderId").Value;
                    YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_SpecimenOrder.AliquotOrderCollection.GetByAliquotOrderId(aliquotOrderId);

                    YellowstonePathology.UI.CustomEventArgs.SpecimenOrderAliquotOrderReturnEventArgs specimenOrderAliquotOrderReturnEventArgs = new CustomEventArgs.SpecimenOrderAliquotOrderReturnEventArgs(this.m_SpecimenOrder, aliquotOrder);
                    this.ShowStainOrderPage(this, specimenOrderAliquotOrderReturnEventArgs);
                }
                else
                {
                    MessageBox.Show("This feature only works if there is a Surgical");
                }
            }
        }
示例#3
0
        private void ButtonStains_Click(object sender, RoutedEventArgs e)
        {
            if (this.ListBoxBlocks.SelectedItem != null)
            {
                if (this.m_AccessionOrder.PanelSetOrderCollection.HasSurgical() == true)
                {
                    string aliquotOrderId = ((XElement)this.ListBoxBlocks.SelectedItem).Element("AliquotOrderId").Value;
                    YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_SpecimenOrder.AliquotOrderCollection.GetByAliquotOrderId(aliquotOrderId);

                    YellowstonePathology.UI.CustomEventArgs.SpecimenOrderAliquotOrderReturnEventArgs specimenOrderAliquotOrderReturnEventArgs = new CustomEventArgs.SpecimenOrderAliquotOrderReturnEventArgs(this.m_SpecimenOrder, aliquotOrder);
                    this.ShowStainOrderPage(this, specimenOrderAliquotOrderReturnEventArgs);
                }
                else
                {
                    MessageBox.Show("This feature only works if there is a Surgical");
                }
            }
            else
            {
                MessageBox.Show("A block must be selected before you can add stains.");
            }
        }
示例#4
0
 private void PrintBlockPage_ShowBlockOptions(object sender, CustomEventArgs.SpecimenOrderAliquotOrderReturnEventArgs e)
 {
     this.ShowBlockOptionsPage(e.SpecimenOrder, e.AliquotOrder);
 }
示例#5
0
        private void ListBoxBlocksMouseDownTimer_Tick(object sender, EventArgs e)
        {
            this.m_ListBoxBlocksMouseDownTimer.Stop();

            if (this.ListBoxBlocks.SelectedItem != null)
            {
                string aliquotOrderId = ((XElement)this.ListBoxBlocks.SelectedItem).Element("AliquotOrderId").Value;
                YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_SpecimenOrder.AliquotOrderCollection.GetByAliquotOrderId(aliquotOrderId);

                YellowstonePathology.UI.CustomEventArgs.SpecimenOrderAliquotOrderReturnEventArgs specimenOrderAliquotOrderReturnEventArgs = new CustomEventArgs.SpecimenOrderAliquotOrderReturnEventArgs(this.m_SpecimenOrder, aliquotOrder);
                this.ShowBlockOptions(this, specimenOrderAliquotOrderReturnEventArgs);
            }
        }