Ejemplo n.º 1
0
        private void FillControls()
        {
            if (loadingCircle1.InvokeRequired)
            {
                FillControlsCallback aoc = new FillControlsCallback(FillControls);
                this.Invoke(aoc, null);
            }
            else
            {

                loadingCircle1.Active = false;
                loadingCircle1.Visible = false;

                mutBRCA.Text = decorateNullableScore(proband.RP.RiskProfile_BrcaPro_1_2_Mut_Prob);
                mutMyriad.Text = decorateNullableScore(proband.RP.RiskProfile_Myriad_Brca_1_2);
                mutTC.Text = decorateNullableScore(proband.RP.RiskProfile_TyrerCuzick_Brca_1_2);
                mutTCv7.Text = decorateNullableScore(proband.RP.RiskProfile_TyrerCuzick_v7_Brca_1_2);

                riskBC5Yr_Brca.Text = decorateNullableScore(proband.RP.RiskProfile_BrcaPro_5Year_Breast);
                riskBCLifetime_Brca.Text = decorateNullableScore(proband.RP.RiskProfile_BrcaPro_Lifetime_Breast);
                riskBC5Yr_Claus.Text = decorateNullableScore(proband.RP.RiskProfile_Claus_5Year_Breast);
                riskBCLifetime_Claus.Text = decorateNullableScore(proband.RP.RiskProfile_Claus_Lifetime_Breast);
                riskBC5Yr_Gail.Text = decorateNullableScore(proband.RP.RiskProfile_Gail_5Year_Breast);
                riskBCLifetime_Gail.Text = decorateNullableScore(proband.RP.RiskProfile_Gail_Lifetime_Breast);
                riskBC5Yr_TC.Text = decorateNullableScore(proband.RP.RiskProfile_TyrerCuzick_5Year_Breast);
                riskBCLifetime_TC.Text = decorateNullableScore(proband.RP.RiskProfile_TyrerCuzick_Lifetime_Breast);
                riskBC5Yr_TCv7.Text = decorateNullableScore(proband.RP.RiskProfile_TyrerCuzick_v7_5Year_Breast);
                riskBCLifetime_TCv7.Text = decorateNullableScore(proband.RP.RiskProfile_TyrerCuzick_v7_Lifetime_Breast);

                riskOC5Yr_Brca.Text = decorateNullableScore(proband.RP.RiskProfile_BrcaPro_5Year_Ovary);
                riskOCLifetime_Brca.Text = decorateNullableScore(proband.RP.RiskProfile_BrcaPro_Lifetime_Ovary);

                mutMMRPRO.Text = decorateNullableScore(proband.RP.MmrPro_1_2_6_Mut_Prob);
                //mutPREMM.Text = decorateNullableScore(proband.RP.PREMM);
                PREMMlabel.Text = (proband.RP.PREMM == null) ? "PREMM2" : "PREMM";
                mutPREMM.Text = decorateNullableScore((proband.RP.PREMM2 != null) ? proband.RP.RiskProfile_PREMM2 : proband.RP.RiskProfile_PREMM);
                riskCC5Yr_mmrpro.Text = decorateNullableScore(proband.RP.MmrPro_5Year_Colon);
                riskCC5Yr_CCRAT.Text = decorateNullableScore(proband.RP.CCRATModel.Details.CCRAT_FiveYear_CRC);
                riskCCLifetime_mmrpro.Text = decorateNullableScore(proband.RP.MmrPro_Lifetime_Colon);
                riskCCLifetime_CCRAT.Text = decorateNullableScore(proband.RP.CCRATModel.Details.CCRAT_Lifetime_CRC);
                riskEC5Yr_mmrpro.Text = decorateNullableScore(proband.RP.MmrPro_5Year_Endometrial);
                riskECLifetime_mmrpro.Text = decorateNullableScore(proband.RP.MmrPro_Lifetime_Endometrial);

                buttonCalcRiskScores.Enabled = true;
            }
        }
Ejemplo n.º 2
0
        private void FillControls()
        {
            if (Thread.CurrentThread.Name != "MainGUI")
            {
                FillControlsCallback rmc = new FillControlsCallback(FillControls);
                this.Invoke(rmc, null);
            }
            else
            {
                loadingCircle1.Active = true;
                loadingCircle1.Visible = true;

                foreach (Person p in proband.FHx.Relatives)
                {
                    Application.DoEvents();
                    FamilyHistoryRelativeRow fhrr = new FamilyHistoryRelativeRow(p);
                    flowLayoutPanel1.Controls.Add(fhrr);
                }
                loadingCircle1.Active = false;
                loadingCircle1.Visible = false;
            }
        }
Ejemplo n.º 3
0
        private void FillControls()
        {
            if (Thread.CurrentThread.Name != "MainGUI")
            {
                FillControlsCallback rmc = new FillControlsCallback(FillControls);
                this.Invoke(rmc, null);
            }
            else
            {

                for (int i = 0; i < pmh.Observations.Count; i++)
                {
                    ClincalObservation co = (ClincalObservation)pmh.Observations[i];
                    switch (i)
                    {
                        case 0:
                            comboBox2.Tag = co;
                            comboBox2.Text = co.disease;
                            textBox2.Text = co.ageDiagnosis;
                            break;
                        case 1:
                            comboBox6.Tag = co;
                            comboBox6.Text = co.disease;
                            textBox3.Text = co.ageDiagnosis;
                            break;
                        case 2:
                            comboBox8.Tag = co;
                            comboBox8.Text = co.disease;
                            textBox4.Text = co.ageDiagnosis;
                            break;
                        default:
                            break;
                    }
                }
            }
        }