private void HyperLinkSetResults_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_PanelSetOrder.IsOkToSetResults();
            if (methodResult.Success == true)
            {
                YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroup cysticFibrosisEthnicGroup = new YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroupUnknown();
                if (this.ComboBoxEthnicGroup.SelectedItem != null)
                {
                    cysticFibrosisEthnicGroup = (YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroup)this.ComboBoxEthnicGroup.SelectedItem;

                }
                YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisResult cysticFibrosisResult = (YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisResult)this.m_ResultCollection.GetResult(this.m_PanelSetOrder);
                cysticFibrosisResult.SetResults(this.m_PanelSetOrder, cysticFibrosisEthnicGroup);
            }
            else
            {
                MessageBox.Show(methodResult.Message);
            }
        }
Esempio n. 2
0
 private void HyperLinkSetResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_PanelSetOrder.IsOkToSetResults();
     if (methodResult.Success == true)
     {
         YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroup cysticFibrosisEthnicGroup = new YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroupUnknown();
         if (this.ComboBoxEthnicGroup.SelectedItem != null)
         {
             cysticFibrosisEthnicGroup = (YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroup) this.ComboBoxEthnicGroup.SelectedItem;
         }
         YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisResult cysticFibrosisResult = (YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisResult) this.m_ResultCollection.GetResult(this.m_PanelSetOrder);
         cysticFibrosisResult.SetResults(this.m_PanelSetOrder, cysticFibrosisEthnicGroup);
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }