Ejemplo n.º 1
0
 private void FillDataFromTestResult(GeneticTestResult geneticTestResult)
 {
     if (geneticTestResult != null)
     {
         if (this.InvokeRequired)
         {
             FillDataCallback fdc  = new FillDataCallback(FillDataFromTestResult);
             object[]         args = new object[1];
             args[0] = geneticTestResult;
             this.Invoke(fdc, args);
         }
         else
         {
             if (!string.IsNullOrEmpty(geneticTestResult.geneName))
             {
                 geneNameComboBox.Text = geneticTestResult.geneName;
                 geneNameTextBox.Text  = geneticTestResult.geneName;
             }
             else
             {
                 geneNameTextBox.ReadOnly = false;
             }
             mutationNameComboBox.Text = geneticTestResult.mutationName;
             mutationAAComboBox.Text   = geneticTestResult.mutationAA;
             if (geneticTestResult.resultSignificance != null)
             {
                 if (resultSignificanceComboBox.Items.Contains(geneticTestResult.resultSignificance) == false)
                 {
                     resultSignificanceComboBox.Items.Add(geneticTestResult.resultSignificance);
                 }
             }
             resultSignificanceComboBox.Text = geneticTestResult.resultSignificance;
             allelicStateComboBox.Text       = geneticTestResult.allelicState;
             commentsTextBox.Text            = geneticTestResult.comments;
             var selection = SessionManager.Instance.MetaData.Mutations
                             .Where(m =>
                                    ((MutationObject)m).geneName == geneticTestResult.geneName &&
                                    ((MutationObject)m).mutationDNA == geneticTestResult.mutationName);
             string lkpresultSignificance = selection.Select(m => ((MutationObject)m).significance).FirstOrDefault();
             if (lkpresultSignificance != geneticTestResult.resultSignificance)
             {
                 //BD - VariantSerive
                 //label1.Visible = true;
             }
             else
             {
                 label1.Visible = false;
             }
         }
     }
 }
Ejemplo n.º 2
0
        private void FillDataFromTestResult(GeneticTestResult geneticTestResult)
        {
            if (geneticTestResult != null)
            {
                if (this.InvokeRequired)
                {
                    FillDataCallback fdc  = new FillDataCallback(FillDataFromTestResult);
                    object[]         args = new object[1];
                    args[0] = geneticTestResult;
                    this.Invoke(fdc, args);
                }
                else
                {
                    allelicStateComboBox.Text = geneticTestResult.allelicState;
                    commentsTextBox.Text      = geneticTestResult.comments;

                    ASOInfoTextBox.Text    = geneticTestResult.GetASOSummary();
                    ASOResultComboBox.Text = geneticTestResult.ASOResult;
                }
            }
        }
Ejemplo n.º 3
0
 private void FillDataFromTestResult(GeneticTestResult geneticTestResult)
 {
     if (geneticTestResult != null)
     {
         if (this.InvokeRequired)
         {
             FillDataCallback fdc = new FillDataCallback(FillDataFromTestResult);
             object[] args = new object[1];
             args[0] = geneticTestResult;
             this.Invoke(fdc, args);
         }
         else
         {
             if (!string.IsNullOrEmpty(geneticTestResult.geneName))
             {
                 geneNameComboBox.Text = geneticTestResult.geneName;
                 geneNameTextBox.Text = geneticTestResult.geneName;
             }
             else
             {
                 geneNameTextBox.ReadOnly = false;
             }
             mutationNameComboBox.Text = geneticTestResult.mutationName;
             mutationAAComboBox.Text = geneticTestResult.mutationAA;
             if (geneticTestResult.resultSignificance != null)
             {
                 if (resultSignificanceComboBox.Items.Contains(geneticTestResult.resultSignificance) == false)
                 {
                     resultSignificanceComboBox.Items.Add(geneticTestResult.resultSignificance);
                 }
             }
             resultSignificanceComboBox.Text = geneticTestResult.resultSignificance;
             allelicStateComboBox.Text = geneticTestResult.allelicState;
             commentsTextBox.Text = geneticTestResult.comments;
             var selection = SessionManager.Instance.MetaData.Mutations
                 .Where(m =>
                     ((MutationObject)m).geneName == geneticTestResult.geneName &&
                     ((MutationObject)m).mutationDNA == geneticTestResult.mutationName);
             string lkpresultSignificance = selection.Select(m => ((MutationObject)m).significance).FirstOrDefault();
             if (lkpresultSignificance != geneticTestResult.resultSignificance)
             {
                 //BD - VariantSerive
                 //label1.Visible = true;
             }
             else
             {
                 label1.Visible = false;
             }
         }
     }
 }
Ejemplo n.º 4
0
        private void FillDataFromTestResult(GeneticTestResult geneticTestResult)
        {
            if (geneticTestResult != null)
            {
                if (this.InvokeRequired)
                {
                    FillDataCallback fdc = new FillDataCallback(FillDataFromTestResult);
                    object[] args = new object[1];
                    args[0] = geneticTestResult;
                    this.Invoke(fdc, args);
                }
                else
                {
                    allelicStateComboBox.Text = geneticTestResult.allelicState;
                    commentsTextBox.Text = geneticTestResult.comments;

                    ASOInfoTextBox.Text = geneticTestResult.GetASOSummary();
                    ASOResultComboBox.Text = geneticTestResult.ASOResult;
                }
            }
        }